diff options
author | Maximilian Bosch <[email protected]> | 2021-12-26 15:01:25 +0000 |
---|---|---|
committer | Maximilian Bosch <[email protected]> | 2021-12-30 17:06:50 +0000 |
commit | a18e994ae5fc95761d4d3569a99d98dd4a99660b (patch) | |
tree | f2a006f7dbdbb69015a7fca99d8091884c8c2f48 /src | |
parent | 18a1ce8f0343f7865f8a01741fb96f98945645d0 (diff) |
Add `round()` function
Diffstat (limited to 'src')
-rw-r--r-- | src/lex.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 | }; |