Skip to content
REFERENCE

Numeric Scalar Functions

A list of available functions to perform numeric scalar calculations


Returns the absolute value of x.

abs(x: DOUBLE) -> DOUBLE

Computes the arccosine of x.

acos(x: DOUBLE) -> DOUBLE

Computes the arcsine of x.

asin(x: DOUBLE) -> DOUBLE

Computes the arctangent of x.

atan(x: DOUBLE) -> DOUBLE

Computes the arctangent (y, x).

atan2(y: DOUBLE, x: DOUBLE) -> DOUBLE

Returns the cube root of the number.

cbrt(x: DOUBLE) -> DOUBLE

Rounds the number up.

ceiling(x: DOUBLE) -> DECIMAL

Computes the cosine of x.

cos(x: DOUBLE) -> DOUBLE

Converts radians to degrees.

degrees(x: DOUBLE) -> DOUBLE

Computes e x.

exp(x: DOUBLE) -> DOUBLE

Rounds the number down.

floor(x: DOUBLE) -> DECIMAL

Returns true if the floating point value is finite, false otherwise.

is_finite(x: DOUBLE) -> BOOLEAN

Returns true if the floating point value is infinite, false otherwise.

is_infinite(x: DOUBLE) -> BOOLEAN

Returns true if the floating point value is not a number, false otherwise.

is_nan(x: DOUBLE) -> BOOLEAN

Computes the natural logarithm of x.

ln(x: DOUBLE) -> DOUBLE

Computes the base-10 logarithm of x.

log(x: DOUBLE) -> DOUBLE

Computes the base-2 log of x.

log2(x: DOUBLE) -> DOUBLE

Returns the value of pi.

pi() -> DOUBLE

Converts degrees to radians.

radians(x: DOUBLE) -> DOUBLE

Returns a random number x in the range 0.0 <= x < 1.0.

random() -> DOUBLE

Round to ‘decimal_places’ decimal places. Values ‘decimal_places’ < 0 are allowed.

round(value: DOUBLE, decimal_places: DOUBLE) -> DOUBLE

Computes x to the power of y.

power(x: DOUBLE, y: DOUBLE) -> DOUBLE

Returns the sign of x as -1, 0 or 1.

sign(x: DOUBLE) -> DOUBLE

Computes the sin of x.

sin(x: DOUBLE) -> DOUBLE

Returns the square root of the number.

sqrt(x: DOUBLE) -> DOUBLE

Computes the tangent of x.

tan(x: DOUBLE) -> DOUBLE

Truncates the number.

truncate(x: DOUBLE) -> DOUBLE

Computes the hyperbolic sine of x.

sinh(x: DOUBLE) -> DOUBLE

Computes the hyperbolic cosine of x.

cosh(x: DOUBLE) -> DOUBLE

Computes the hyperbolic tangent of x.

tanh(x: DOUBLE) -> DOUBLE

Returns the mathematical constant e.

e() -> DOUBLE

Computes the standard score (z-score) for x given population mean and standard deviation.

z_score(x: DOUBLE, mean: DOUBLE, stddev: DOUBLE) -> DOUBLE