Mathematical functions perform many of the common mathematical operations. They take numeric input and return numeric output.
abs(col)
The absolute value of a value.
acos(col)
The inverse cosine of a number of radians.
asin(col)
The inverse sine of a number of radians.
atan(col)
The inverse tangent of a number of radians.
atan2(col1, col2)
The angle, in radians, between the positive x-axis and the (x, y) point defined in the two arguments.
bitand(col1, col2)
Performs a bitwise AND on the bit representations of the two Int(-converted) arguments.
bitor(col1, col2)
Performs a bitwise OR of the bit representations of the two arguments.
bitxor(col1, col2)
Performs a bitwise XOR on the bit representations of the two Int(-converted) arguments.
bitnot(col1)
Performs a bitwise NOT on the bit representations of the Int(-converted) argument.
ceil(col)
The smallest integer value that is greater than or equal to the argument.
cos(col)
The cosine of a number of radians.
cosh(col)
The hyperbolic cosine of a number.
exp(col)
Returns Euler's number e raised to the power of a double value.
ln(col)
Returns the natural logarithm of a double value.
log(col)
Returns the base 10 logarithm of a double value.
mod(col1, col2)
Returns the remainder of the division of the first argument by the second argument.
power(col1, col2)
Returns the value of the first argument raised to the power of the second argument.
rand()
Returns a random number between 0.0 (inclusive) and 1.0 (exclusive).
round(col)
Returns the closest BIGINT value to the argument.
sign(col)
Returns the signum function of the argument. When the sign of the argument is positive, 1 is returned. When the sign of the argument is negative, -1 is returned. If the argument is 0, 0 is returned.
sin(col)
The sine of a numbmulti_column_functions.mder in radians.
sinh(col)
The hyperbolic sine of a number.
sqrt(col)
Returns the positive square root of a double value.
tan(col)
The tangent of a number of radians.
tanh(col)
The hyperbolic tangent of a number.