diff options
Diffstat (limited to 'library/src')
| -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) } |
