mirror of
https://github.com/typst/typst
synced 2025-05-21 04:25:28 +08:00
Add tau (#2033)
This commit is contained in:
parent
0e5c48ad0d
commit
35c785ea11
@ -47,6 +47,7 @@ pub fn module() -> Module {
|
|||||||
scope.define("inf", f64::INFINITY);
|
scope.define("inf", f64::INFINITY);
|
||||||
scope.define("nan", f64::NAN);
|
scope.define("nan", f64::NAN);
|
||||||
scope.define("pi", std::f64::consts::PI);
|
scope.define("pi", std::f64::consts::PI);
|
||||||
|
scope.define("tau", std::f64::consts::TAU);
|
||||||
scope.define("e", std::f64::consts::E);
|
scope.define("e", std::f64::consts::E);
|
||||||
Module::new("calc").with_scope(scope)
|
Module::new("calc").with_scope(scope)
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ calculate: |
|
|||||||
|
|
||||||
These functions are part of the `calc` module and not imported by default. In
|
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
|
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: |
|
construct: |
|
||||||
Construction of and conversions between values of different types.
|
Construction of and conversions between values of different types.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user