0
0

Add root, log, round, ceil, floor

This commit is contained in:
DrMaxNix 2021-07-17 13:17:16 +02:00 committed by GitHub
parent 1f68717234
commit fd89e9b532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,21 @@ mod $1 $2 ...
# $1 ^ $2 ^ ... => $1
pow $1 $2 ...
# root of $1 (power = $2; if not given: square-root) => $1
root $1 $2
# log of $1 (base = $2; if not given: base = 10) => $1
log $1 $2
# round to the nearest integer (.000 - .499 => round down; .500 - 0.999 => round up) => $1
round $1
# round up to the next integer => $1
ceil $1
# round down to the last integer => $1
floor $1
## CONDITIONS ##