Mathematical Functions
The mathematical functions described in this section perform mathematical operations.
| Function | Example | Description | Syntax |
|---|---|---|---|
|
ABS |
|
Calculates the absolute value of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
ACOS |
|
Calculates the arc cosine of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
ASIN |
|
Calculates the arc sine of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
ATAN |
|
Calculates the arc tangent of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
ATAN2 |
|
Calculates the arc tangent of y /x, where y is the first numeric expression and x is the second numeric expression. |
|
|
CEILING |
|
Rounds a non-integer numeric expression to the next highest integer. If the numeric expression evaluates to an integer, the |
|
|
COS |
|
Calculates the cosine of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
COT |
|
Calculates the cotangent of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
DEGREES |
|
Converts an expression from radians to degrees. expr is any expression that evaluates to a numerical value. |
|
|
EXP |
|
Sends the value to the power specified. Calculates e raised to the n-th power, where e is the base of the natural logarithm. |
|
|
ExtractBit |
|
Retrieves a bit at a particular position in an integer. It returns an integer of either 0 or 1 corresponding to the position of the bit. |
|
|
FLOOR |
|
Rounds a non-integer numeric expression to the next lowest integer. If the numeric expression evaluates to an integer, the |
FLOOR(expr) |
|
LOG |
|
Calculates the natural logarithm of an expression. expr is any expression that evaluates to a numerical value. |
|
|
LOG10 |
|
Calculates the base 10 logarithm of an expression. expr is any expression that evaluates to a numerical value. |
|
|
MOD |
|
Divides the first numeric expression by the second numeric expression and returns the remainder portion of the quotient. |
|
|
PI |
|
Returns the constant value of pi. |
|
|
POWER |
|
Takes the first numeric expression and raises it to the power specified in the second numeric expression. |
|
|
RADIANS |
|
Converts an expression from degrees to radians. expr is any expression that evaluates to a numerical value. |
|
|
RAND |
|
Returns a pseudo-random number between 0 and 1. |
|
|
RANDFromSeed |
|
Returns a pseudo-random number based on a seed value. For a given seed value, the same set of random numbers are generated. |
|
|
ROUND |
|
Rounds a numeric expression to n digits of precision. expr is any expression that evaluates to a numerical value. integer is any positive integer that represents the number of digits of precision. |
|
|
SIGN |
|
Returns the following:
|
|
|
SIN |
|
Calculates the sine of a numeric expression. |
|
|
SQRT |
|
Calculates the square root of the numeric expression argument. The numeric expression must evaluate to a nonnegative number. |
|
|
TAN |
|
Calculates the tangent of a numeric expression. expr is any expression that evaluates to a numerical value. |
|
|
TRUNCATE |
|
Truncates a decimal number to return a specified number of places from the decimal point. expr is any expression that evaluates to a numerical value. integer is any positive integer that represents the number of characters to the right of the decimal place to return. |
|