Mathematical Functions
Supported Mathematical Functions
AVG
AVG(expr,expr,...)
Returns the average of a set of values.
ABS
ABS(expr)
Returns the absolute value of a number.
ACOS
ACOS(expr)
Returns the inverse cosine (arc cosine) of a value.
ACOSH
ACOSH(expr)
Returns the inverse hyperbolic cosine (hyperbolic arc cosine) of a value.
ASIN
ASIN(expr)
Returns the inverse sine (arc sine) of a value.
ASINH
ASINH(expr)
Returns the inverse hyperbolic sine (hyperbolic arc sine) of a value.
ATAN
ATAN(expr)
Returns the inverse tangent (arc tangent) of a value.
ATAN2
ATAN2(y,x)
Returns the inverse tangent (arc tangent) of y / x, where y and x are the first and second values passed to the expression respectively.
ATANH
ATANH(expr)
Returns the inverse hyperbolic tangent (hyperbolic arc tangent) of a value.
BINARY_SIZE
BINARY_SIZE(expr)
Returns the byte size of the expression.
CEIL
CEIL(expr)
Returns the smallest integer greater than or equal to the specified number.
DEGREES_TO_RADIANS
DEGREES_TO_RADIANS(expr)
Converts an input value measured in degrees to radians.
DIVIDE
DIVIDE(expr,expr)
Divides one number by another and returns the result.
EXP
EXP(expr)
Raises Euler's number (i.e. e ) to the specified exponent and returns the result.
FLOOR
FLOOR(expr)
Returns the largest integer less than or equal to the specified number.
LN
LN(expr)
Calculates the natural logarithm ln (i.e log e) of a number and returns the result as a double.
LOG
LOG(number,base)
Calculates the log of a number in the specified base and returns the result as a double.
LOG10
LOG10(expr)
Calculates the log base 10 of a number and returns the result as a double.
MAX
MAX(expr,expr,...)
Returns the max of a set of numbers.
MIN
MIN(xpr,expr,...)
Returns the min of a set of numbers.
MOD
MOD(expr,expr)
Divides one number by another and returns the remainder.
MULTIPLY
MULTIPLY(expr,expr,...)
Multiplies numbers together and returns the result.
POW
POW(expr,exponent)
Raises a number to the specified exponent and returns the result.
RADIANS_TO_DEGREES
RADIANS_TO_DEGREES(expr)
Converts an input value measured in radians to degrees.
RAND
RAND()
Returns a random float between 0 and 1 each time it is called.
ROUND
ROUND(expr,[places])
Rounds a number to a whole integer or to a specified decimal place.
SIN
SIN(expr)
Returns the sine of a value that is measured in radians.
SINH
SINH(expr)
Returns the hyperbolic sine of a value that is measured in radians.
SQRT
SQRT(expr)
Calculates the square root of a positive number and returns the result as a double.
SUBTRACT
SUBTRACT(expr,expr)
Subtracts two numbers to return the difference, or two dates to return the difference in milliseconds, or a date and a number in milliseconds to return the resulting date.
SUM
SUM(expr,expr,...)
Sums the values provided in the expression.
TAN
TAN(expr)
Returns the tangent of a value that is measured in radians.
TANH
TANH(expr)
Returns the hyperbolic tangent of a value that is measured in radians.
TRUNC
TRUNC(expr,[places])
Truncates a number to a whole integer or to a specified decimal place.