diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-06 22:06:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-06 22:25:55 +0200 |
| commit | 6ea98dd940361ad9232ec86f33b29c6318009c20 (patch) | |
| tree | a350e0380c7403969ced255e4e55c04d83bcaff8 /library | |
| parent | fd417da04f7ca4b995de7f6510abafd3e9c31307 (diff) | |
Small refactorings
Diffstat (limited to 'library')
| -rw-r--r-- | library/src/compute/calc.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/src/compute/calc.rs b/library/src/compute/calc.rs index 0fc45891..071cf164 100644 --- a/library/src/compute/calc.rs +++ b/library/src/compute/calc.rs @@ -43,10 +43,10 @@ pub fn module() -> Module { scope.define("rem", rem_func()); scope.define("mod", mod_func()); scope.define("quo", quo_func()); - scope.define("inf", Value::Float(f64::INFINITY)); - scope.define("nan", Value::Float(f64::NAN)); - scope.define("pi", Value::Float(std::f64::consts::PI)); - scope.define("e", Value::Float(std::f64::consts::E)); + scope.define("inf", f64::INFINITY); + scope.define("nan", f64::NAN); + scope.define("pi", std::f64::consts::PI); + scope.define("e", std::f64::consts::E); Module::new("calc").with_scope(scope) } |
