Skip to main content

Module math

Module math 

Source

Functionsยง

abs
ABS(x) - Absolute value
ceil
CEIL(x) / CEILING(x) - Round up to nearest integer
exp
EXP(x) - e^x
floor
FLOOR(x) - Round down to nearest integer
ln
LN(x) / LOG(x) - Natural logarithm
log10
LOG10(x) - Base-10 logarithm
modulo
MOD(x, y) - Modulo operation
pi
PI() - Returns pi constant
pow
POW(x, y) / POWER(x, y) - x raised to power y
rand
RAND() / RANDOM() - Random number between 0 and 1
round
ROUND(x, [decimals]) - Round to specified decimal places
sign
SIGN(x) - Returns -1, 0, or 1 depending on sign
sqrt
SQRT(x) - Square root
trunc
TRUNC(x, [decimals]) - Truncate to decimal places