This commit is contained in:
Matt Fellenz 2023-08-30 02:56:00 -07:00 committed by GitHub
parent 0e5c48ad0d
commit 35c785ea11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ pub fn module() -> Module {
scope.define("inf", f64::INFINITY);
scope.define("nan", f64::NAN);
scope.define("pi", std::f64::consts::PI);
scope.define("tau", std::f64::consts::TAU);
scope.define("e", std::f64::consts::E);
Module::new("calc").with_scope(scope)
}

View File

@ -151,7 +151,7 @@ calculate: |
These functions are part of the `calc` module and not imported by default. In
addition to the functions listed below, the `calc` module also defines the
constants `pi`, `e`, `inf`, and `nan`.
constants `pi`, `tau`, `e`, `inf`, and `nan`.
construct: |
Construction of and conversions between values of different types.