Built-in Functions → Arithmetic Functions

The following table illustrates the arithmetic functions:

FunctionSyntaxDescription
abs()abs(double exp)Returns the absolute value of a double expression
ceil()ceil(double exp)Returns the smallest of two numeric scalars
floor()floor(double exp)Returns the largest integer less than or equal to its argument
max()max(double exp, double exp)Returns the larger of two doubles
mod()mod(double dividend, double divisor)Returns the modulus (remainder) resulting from the division of one double by another
min()min(double exp, double exp)Returns the larger of two doubles
rnd()rnd()Returns a random number between 0 and 1
round()round(double exp)Returns the closest integer to its floating point argument
exp()exp(double exp)Returns a value raised by e to a given power
sqrt()sqrt(double exp)Returns the square root of its argument
trunc()trunc(double exp)Returns the whole number portion of the double expression