diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-06 14:19:45 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-06 14:19:54 -0700 |
| commit | 7cd512d15e5bc22c529d5b4e3e02a41fe1e84208 (patch) | |
| tree | d98c68199c00b0ea6f3019b23d877ec60471878b | |
| parent | 810ae220bc2b1dfa07593b77f391e4da3b57a6bb (diff) | |
Added alias: "% as number"
| -rw-r--r-- | core/math.nom | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math.nom b/core/math.nom index 2f16b11..1e733e7 100644 --- a/core/math.nom +++ b/core/math.nom @@ -15,7 +15,7 @@ compile [golden ratio] to: Lua value "((1+math.sqrt(5))/2)" compile [e] to: Lua value "math.exp(1)" # Functions: -compile [% as a number] to: Lua value "tonumber(\(% as lua expr))" +compile [% as a number, % as number] to: Lua value "tonumber(\(% as lua expr))" compile [absolute value %, | % |, abs %] to: Lua value "math.abs(\(% as lua expr))" compile [square root %, square root of %, √%, sqrt %] to: Lua value "math.sqrt(\(% as lua expr))" compile [sine %, sin %] to: Lua value "math.sin(\(% as lua expr))" |
