feat: parse unicode pi, π
This commit is contained in:
parent
780f0c6f4c
commit
a520177183
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ impl Node {
|
|||
Ok(match s {
|
||||
"c" => Self::from(299_792_458),
|
||||
"A" => Self::from(6.02214076e23),
|
||||
"pi" => Self::from(f64::consts::PI),
|
||||
"pi" | "π" => Self::from(f64::consts::PI),
|
||||
// Planck's constant, in J*s (joule-seconds)
|
||||
"h" => Self::from(6.62607015e-34),
|
||||
"e" => Self::from(f64::consts::E),
|
||||
|
|
|
|||
Loading…
Reference in a new issue