Numeric Scalar Functions
A list of available functions to perform numeric scalar calculations
Functions
Section titled “Functions”abs(x:)
Section titled “abs(x:)”Returns the absolute value of x.
abs(x: DOUBLE) -> DOUBLE
acos(x:)
Section titled “acos(x:)”Computes the arccosine of x.
acos(x: DOUBLE) -> DOUBLE
asin(x:)
Section titled “asin(x:)”Computes the arcsine of x.
asin(x: DOUBLE) -> DOUBLE
atan(x:)
Section titled “atan(x:)”Computes the arctangent of x.
atan(x: DOUBLE) -> DOUBLE
atan2(y:x:)
Section titled “atan2(y:x:)”Computes the arctangent (y, x).
atan2(y: DOUBLE, x: DOUBLE) -> DOUBLE
cbrt(x:)
Section titled “cbrt(x:)”Returns the cube root of the number.
cbrt(x: DOUBLE) -> DOUBLE
ceiling(x:)
Section titled “ceiling(x:)”Rounds the number up.
ceiling(x: DOUBLE) -> DECIMAL
cos(x:)
Section titled “cos(x:)”Computes the cosine of x.
cos(x: DOUBLE) -> DOUBLE
degrees(x:)
Section titled “degrees(x:)”Converts radians to degrees.
degrees(x: DOUBLE) -> DOUBLE
exp(x:)
Section titled “exp(x:)”Computes e x.
exp(x: DOUBLE) -> DOUBLE
floor(x:)
Section titled “floor(x:)”Rounds the number down.
floor(x: DOUBLE) -> DECIMAL
is_finite(x:)
Section titled “is_finite(x:)”Returns true if the floating point value is finite, false otherwise.
is_finite(x: DOUBLE) -> BOOLEAN
is_infinite(x:)
Section titled “is_infinite(x:)”Returns true if the floating point value is infinite, false otherwise.
is_infinite(x: DOUBLE) -> BOOLEAN
is_nan(x:)
Section titled “is_nan(x:)”Returns true if the floating point value is not a number, false otherwise.
is_nan(x: DOUBLE) -> BOOLEAN
ln(x:)
Section titled “ln(x:)”Computes the natural logarithm of x.
ln(x: DOUBLE) -> DOUBLE
log(x:)
Section titled “log(x:)”Computes the base-10 logarithm of x.
log(x: DOUBLE) -> DOUBLE
log2(x:)
Section titled “log2(x:)”Computes the base-2 log of x.
log2(x: DOUBLE) -> DOUBLE
Returns the value of pi.
pi() -> DOUBLE
radians(x:)
Section titled “radians(x:)”Converts degrees to radians.
radians(x: DOUBLE) -> DOUBLE
random()
Section titled “random()”Returns a random number x in the range 0.0 <= x < 1.0.
random() -> DOUBLE
round(value:decimal_places:)
Section titled “round(value:decimal_places:)”Round to ‘decimal_places’ decimal places. Values ‘decimal_places’ < 0 are allowed.
round(value: DOUBLE, decimal_places: DOUBLE) -> DOUBLE
power(x:y:)
Section titled “power(x:y:)”Computes x to the power of y.
power(x: DOUBLE, y: DOUBLE) -> DOUBLE
sign(x:)
Section titled “sign(x:)”Returns the sign of x as -1, 0 or 1.
sign(x: DOUBLE) -> DOUBLE
sin(x:)
Section titled “sin(x:)”Computes the sin of x.
sin(x: DOUBLE) -> DOUBLE
sqrt(x:)
Section titled “sqrt(x:)”Returns the square root of the number.
sqrt(x: DOUBLE) -> DOUBLE
tan(x:)
Section titled “tan(x:)”Computes the tangent of x.
tan(x: DOUBLE) -> DOUBLE
truncate(x:)
Section titled “truncate(x:)”Truncates the number.
truncate(x: DOUBLE) -> DOUBLE
sinh(x:)
Section titled “sinh(x:)”Computes the hyperbolic sine of x.
sinh(x: DOUBLE) -> DOUBLE
cosh(x:)
Section titled “cosh(x:)”Computes the hyperbolic cosine of x.
cosh(x: DOUBLE) -> DOUBLE
tanh(x:)
Section titled “tanh(x:)”Computes the hyperbolic tangent of x.
tanh(x: DOUBLE) -> DOUBLE
Returns the mathematical constant e.
e() -> DOUBLE
z_score(x:mean:stddev:)
Section titled “z_score(x:mean:stddev:)”Computes the standard score (z-score) for x given population mean and standard deviation.
z_score(x: DOUBLE, mean: DOUBLE, stddev: DOUBLE) -> DOUBLE