aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaximilian Bosch <[email protected]>2021-12-26 15:01:25 +0000
committerMaximilian Bosch <[email protected]>2021-12-30 17:06:50 +0000
commita18e994ae5fc95761d4d3569a99d98dd4a99660b (patch)
treef2a006f7dbdbb69015a7fca99d8091884c8c2f48 /src
parent18a1ce8f0343f7865f8a01741fb96f98945645d0 (diff)
Add `round()` function
Diffstat (limited to 'src')
-rw-r--r--src/lex.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lex.rs b/src/lex.rs
index da542d5..1220a1f 100644
--- a/src/lex.rs
+++ b/src/lex.rs
@@ -103,6 +103,7 @@ lazy_static! {
103 m.insert("acot", Function::token_from_fn("acot".into(), |x| (1./x).atan())); 103 m.insert("acot", Function::token_from_fn("acot".into(), |x| (1./x).atan()));
104 m.insert("exp", Function::token_from_fn("exp".into(), |x| x.exp())); 104 m.insert("exp", Function::token_from_fn("exp".into(), |x| x.exp()));
105 m.insert("exp2", Function::token_from_fn("exp2".into(), |x| x.exp2())); 105 m.insert("exp2", Function::token_from_fn("exp2".into(), |x| x.exp2()));
106 m.insert("round", Function::token_from_fn("round".into(), |x| x.round()));
106 // single arg function s can be added here 107 // single arg function s can be added here
107 m 108 m
108 }; 109 };