Syntax |
Description |
Example |
ABS(number) |
Returns the absolute value of a number. |
ABS(-2.5)
Returns: 2.5
|
CEILING(number, multiple) |
Rounds a number away from 0 (zero) to the next instance of multiple. If multiple is not specified, the number rounds away from 0 to the next integer. |
CEILING(1.7)
Returns: 2
CEILING(1.7, 0.25)
Returns: 1.75
|
FLOOR(number, multiple) |
Rounds a number toward 0 (zero), to the next integer, or to the next instance of multiple. If multiple is not specified, the number rounds toward 0 to the next integer. |
FLOOR(1.7)
Returns: 1
FLOOR(1.7, 0.25)
Returns: 1.5
|
INT(number) |
Rounds a number down to the next integer. |
INT(1.2)
Returns: 1
INT(-1.2)
Returns: -2
|
INTUP(number) |
Rounds a number up to the next integer. |
INTUP(1.2)
Returns: 2
INTUP(-1.2)
Returns: -1
|
LN(number) |
Returns the natural logarithm of a number. The number must be positive. |
LN(10)
Returns: 2.3026
|
LOG10(number) |
Returns the base 10 logarithm of a number. The number must be positive |
LOG10(10)
Returns: 1
|
MAGNITUDE(constantA, A, constantB, B) |
Returns the magnitude of the vector whose rise is A and whose run is B, multiplied by the respective constants constantA and constantB. MAGNITUDE is calculated according to the following formula: SQRT((constantA * A) ^ 2 + (constantB * B) ^ 2) |
MAGNITUDE(1, 3, 1, 4)
Returns: 5
|
MAX(number1, number2, ..., numberN) |
Returns the largest number from a list. Largest means closest to positive infinity. |
MAX(1, 3, 2)
Returns: 3 |
MIN(number1, number2, ..., numberN) |
Returns the smallest number from a list. Smallest means closest to negative infinity. |
MAX(1, 3, 2)
Returns: 1 |
MODULUS(number, divisor) |
Returns the remainder (modulus) resulting when a number is divided by a divisor. The result has the same sign as the divisor. |
MODULUS(5, 1.4)
Returns: 0.8.
MODULUS(5, -1.4)
Returns -0.6.
|
POW(number, exponent) |
Returns a number raised to the power of an exponent. |
POW(10, 2)
Returns: 100 |
ROUND(number, numberofdigits). |
Rounds a number to the precision represented by numberofdigits.
If numberofdigits is greater than 0, number is rounded by numberofdigits to the right of the decimal.
If numberofdigits is 0, number is rounded to an integer.
If numberofdigits is less than 0, number is rounded by numberofdigits to the left of the decimal.
|
ROUND(123.654,2)
Returns: 123.65
ROUND(123.654,0)
Returns: 124
ROUND(123.654,-1)
Returns: 120
|
SIGN(number,fuzz) |
Returns a value that represents the sign of a number.
The SIGN function returns 1 if number is positive, 0 if number is zero, or -1 if number is negative. Fuzz (optional) helps avoid floating-point roundoff errors when a calculation is almost zero. |
SIGN(-10)
Returns: -1.
SIGN(0)
Returns: 0
|
SQRT(number) |
Returns the square root of a number. |
SQRT(4)
Returns: 2
|
SUM(number1 ,number2, ..., numberN) |
Returns the sum of a list of numbers. |
SUM(1,2,3)
Returns: 6 |
TRUNC(number, numberofdigits) |
Returns a number truncated to numberofdigits.
If numberofdigits is greater than 0, number is truncated to numberofdigits to the right of the decimal.
If numberofdigits is 0, number is truncated to an integer.
If numberofdigits is less than 0, number is truncated to numberofdigits to the left of the decimal. |
TRUNC(123.654,2)
Returns: 123.65.
TRUNC(123.654,0)
Returns: 123
TRUNC(123.654,-1)
Returns: 120
|