ES|QL mathematical functions
ES|QL supports these mathematical functions:
ABSReturns the absolute value of a number.
ACOSReturns the arccosine of a number.
ACOSHReturns the inverse hyperbolic cosine of a number.
ASINReturns the arcsine of a number.
ASINHReturns the inverse hyperbolic sine of a number.
ATANReturns the arctangent of a number.
ATAN2Returns the two-argument arctangent of y and x coordinates.
ATANHReturns the inverse hyperbolic tangent of a number.
CBRTReturns the cube root of a number.
CEILRounds a number up to the nearest integer.
COPY_SIGNCombines the magnitude of one number with the sign of another.
COSReturns the cosine of an angle.
COSHReturns the hyperbolic cosine of a number.
EReturns the mathematical constant e.
EXPReturns the value of e raised to the power of the given number.
FLOORRounds a number down to the nearest integer.
HYPOTReturns the hypotenuse of two numbers.
LOGReturns the logarithm of a value to a base.
LOG10Returns the base-10 logarithm of a number.
PIReturns the mathematical constant pi.
POWReturns a value raised to the power of an exponent.
ROUNDRounds a number to the specified number of decimal places.
ROUND_TORounds down to one of a list of fixed points.
SCALBReturns the result of multiplying a number by 2 raised to a scale factor.
SIGNUMReturns the sign of the given number.
SINReturns the sine of an angle.
SINHReturns the hyperbolic sine of a number.
SQRTReturns the square root of a number.
TANReturns the tangent of an angle.
TANHReturns the hyperbolic tangent of a number.
TAUReturns the mathematical constant tau.