math
Provides standard mathematical functions. Accessed via math.<function>.
math.<function>
math.abs(x)
x
math.acos(x)
math.asin(x)
math.atan(x)
math.atan2(y, x)
y/x
math.ceil(x)
math.cos(x)
math.cosh(x)
math.deg(x)
math.exp(x)
math.floor(x)
math.fmod(x, y)
y
math.frexp(x)
m
e
math.ldexp(m, e)
math.log(x)
math.log10(x)
math.max(x, ...)
math.min(x, ...)
math.modf(x)
math.pow(x, y)
math.rad(x)
math.random([m [, n]])
math.randomseed(x)
math.sin(x)
math.sinh(x)
math.sqrt(x)
math.tan(x)
math.tanh(x)