summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMatt Fellenz <matt@felle.nz>2023-08-30 02:56:00 -0700
committerGitHub <noreply@github.com>2023-08-30 11:56:00 +0200
commit35c785ea118d13112c771e4c00e6f9a21dd6ba65 (patch)
tree400d1bb8cc831a330c0b4adfa831a76fd2b975e3 /crates
parent0e5c48ad0d04c22831e3b41c2904a24c7f5171cb (diff)
Add tau (#2033)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-library/src/compute/calc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-library/src/compute/calc.rs b/crates/typst-library/src/compute/calc.rs
index ee4261af..7cfe2491 100644
--- a/crates/typst-library/src/compute/calc.rs
+++ b/crates/typst-library/src/compute/calc.rs
@@ -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)
}