aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-06 14:19:45 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-06 14:19:54 -0700
commit7cd512d15e5bc22c529d5b4e3e02a41fe1e84208 (patch)
treed98c68199c00b0ea6f3019b23d877ec60471878b
parent810ae220bc2b1dfa07593b77f391e4da3b57a6bb (diff)
Added alias: "% as number"
-rw-r--r--core/math.nom2
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))"