absCompute the absolute value of a number.
Example: abs(-5.7)
Output: 5.7
acosCompute the arccosine of value.
Example: acos(1)
Output: 0
acoshCompute the inverse hyperbolic cosine of value.
Example: acosh(1)
Output: 0
asinCompute the arcsine of value.
Example: asin(0)
Output: 0
asinhCompute the inverse hyperbolic sine of value.
Example: asinh(0)
Output: 0
atanCompute the arctangent of value.
Example: atan(0)
Output: 0
atan2Compute the arctangent of y/x.
Example: atan2(1, 1)
Output: 0.7853981633974483
atanhCompute the inverse hyperbolic tangent of value.
Example: atanh(0)
Output: 0
cbrtCompute the cube root of value.
Example: cbrt(27)
Output: 3
ceilRound number up.
Example: ceil(4.1)
Output: 5
ceilingAlias of ceil
Round number up.
Example: ceil(4.1)
Output: 5
cosCompute the cosine of a value.
Example: cos(0)
Output: 1
coshCompute the hyperbolic cosine of value.
Example: cosh(0)
Output: 1
cotCompute the cotangent of value.
degreesConvert radians to degrees.
Example: degrees(3.141592653589793)
Output: 180
expCompute e ^ val.
Example: exp(1)
Output: 2.718281828459045
factorialCompute the factorial of an integer.
Example: factorial(5)
Output: 120
floorRound number down.
Example: floor(4.7)
Output: 4
gcdCompute the greatest common divisor of two integers.
Example: gcd(12, 8)
Output: 4
is_nanAlias of isnan
Return if the given float is a NaN.
Example: isnan('NaN'::FLOAT)
Output: true
isfiniteReturn if the given float is finite.
Example: isfinite(1.0)
Output: true
isinfReturn if the given float is infinite (positive or negative infinity).
Example: isinf('Infinity'::FLOAT)
Output: true
isnanReturn if the given float is a NaN.
Example: isnan('NaN'::FLOAT)
Output: true
lcmCalculates the least common multiple of two integers.
Example: lcm(12, 18)
Output: 36
lnCompute natural log of value.
Example: ln(2.718281828459045)
Output: 1
logCompute base-10 log of value.
Example: log(100)
Output: 2
log10Alias of log
Compute base-10 log of value.
Example: log(100)
Output: 2
log2Compute base-2 log of value.
Example: log2(8)
Output: 3
negateReturns the result of multiplying the input value by -1.
Example: negate(-3.5)
Output: 3.5
piReturn the value of pi.
Example: pi()
Output: 3.141592653589793
powAlias of power
Compute base raised to the power of exponent.
Example: power(2, 3)
Output: 8
powerCompute base raised to the power of exponent.
Example: power(2, 3)
Output: 8
radiansConvert degrees to radians.
Example: radians(180)
Output: 3.141592653589793
randomReturn a random float between 0 and 1.
Example: random()
Output: 0.7268028627434533
roundRound a number to a given scale.
Example: round(3.14159, 2)
Output: 3.14
roundRound a number to the nearest whole value.
Example: round(3.14159)
Output: 3
shlShifts an integer left by a specified number of bits.
Example: shl(4, 1)
Output: 8
shrShifts an integer right by a specified number of bits.
Example: shr(8, 1)
Output: 4
signSign of the argument (-1, 0, or +1).
Example: sign(-8.4)
Output: -1
sinCompute the sin of value.
Example: sin(0)
Output: 0
sinhCompute the hyperbolic sine of value.
Example: sinh(0)
Output: 0
sqrtCompute the square root of value.
Example: sqrt(9)
Output: 3
tanCompute the tangent of value.
Example: tan(0)
Output: 0
tanhCompute the hyperbolic tangent of value.
Example: tanh(0)
Output: 0
truncTruncate number towards zero.
Example: trunc(-1.9)
Output: -1
xorPerforms a bitwise XOR operation on two integers.
Example: xor(5, 3)
Output: 6