Math Functions

Name and Description
abs(x: integer): integer
abs(x: float): float
abs(x: numeric): numeric

Absolute value.
ceiling(x: float): float

Nearest integer greater than or equal to argument (same as ceil).
degrees(rad: integer): float
degrees(rad: float): float

Converts radians to degrees.
floor(x: float): float

Nearest integer less than or equal to argument.
greatest(...args: any[]): any

The function select the largest value from a list of any number of values.
least(...args: any[]): any

The function select the leas value from a list of any number of values.
ln(x: integer): float
ln(x: float): float

Natural logarithm.
log(x: integer): float
log(x: float): float

Base 10 logarithm.
pi(): float

"Pi" constant.
power(a: integer, b: integer): integer
power(a: float, b: float): float
power(a: integer, b: float): float
power(a: float, b: integer): float

a raised to the power of b.
radians(deg: integer): float
radians(deg: float): float

Converts degrees to radians.
random(): float

Returns a random value in the range 0.0 <= x < 1.0.
round(x: integer): float
round(x: float): float

Rounds to nearest integer.
sqrt(x: integer): float
sqrt(x: float): float

Square root.

Trigonometric Functions

Name and Description
acos(x: integer): float
acos(x: float): float

Inverse cosine, argument in radians.
asin(x: integer): float
asin(x: float): float

Inverse sine, argument in radians.
atan(x: integer): float
atan(x: float): float

Inverse tangent, argument in radians.
cos(x: integer): float
cos(x: float): float

Cosine, argument in radians.
sin(x: integer): float
sin(x: float): float

Sine, argument in radians.
tan(x: integer): float
tan(x: float): float

Tangent, argument in radians.