Math Functions
| Name and Description |
|---|
abs(x: integer): integerabs(x: float): floatabs(x: numeric): numericAbsolute value. |
ceiling(x: float): floatNearest integer greater than or equal to argument (same as ceil). |
degrees(rad: integer): floatdegrees(rad: float): floatConverts radians to degrees. |
floor(x: float): floatNearest integer less than or equal to argument. |
greatest(...args: any[]): anyThe function select the largest value from a list of any number of values. |
least(...args: any[]): anyThe function select the leas value from a list of any number of values. |
ln(x: integer): floatln(x: float): floatNatural logarithm. |
log(x: integer): floatlog(x: float): floatBase 10 logarithm. |
pi(): float"Pi" constant. |
power(a: integer, b: integer): integerpower(a: float, b: float): floatpower(a: integer, b: float): floatpower(a: float, b: integer): floata raised to the power of b. |
radians(deg: integer): floatradians(deg: float): floatConverts degrees to radians. |
random(): floatReturns a random value in the range 0.0 <= x < 1.0. |
round(x: integer): floatround(x: float): floatRounds to nearest integer. |
sqrt(x: integer): floatsqrt(x: float): floatSquare root. |
Trigonometric Functions
| Name and Description |
|---|
acos(x: integer): floatacos(x: float): floatInverse cosine, argument in radians. |
asin(x: integer): floatasin(x: float): floatInverse sine, argument in radians. |
atan(x: integer): floatatan(x: float): floatInverse tangent, argument in radians. |
cos(x: integer): floatcos(x: float): floatCosine, argument in radians. |
sin(x: integer): floatsin(x: float): floatSine, argument in radians. |
tan(x: integer): floattan(x: float): floatTangent, argument in radians. |