3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

exponential

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Tiago R 2023-10-09 09:48:14 +00:00 committed by GitHub
parent 54d2c00d17
commit e2d23aa4af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -457,6 +457,10 @@ const baseValues = {
return result / parseFloat(arg);
}, args[0]);
},
exp(base, power) {
if (isNaN(base) || isNaN(power)) return 0;
return Math.pow(parseFloat(base), parseFloat(power));
},
cases(mod, ...cases) {
if (cases.length === 0) return "";
if (isNaN(mod)) return "";