Number Functions¶
Quick Reference¶
| Function | Description |
|---|---|
ABS | Returns the absolute value of a number. |
CEIL | Returns the smallest integer value greater than or equal to ... |
EXP | Returns the exponential of the number. |
FLOOR | Returns the largest integer value less than or equal to the ... |
LOG | Returns the natural logarithm, or with base if provided. |
MOD | Returns the remainder of the division of the first argument ... |
POWER | Raises the first argument to the power of the second. |
ROUND | Rounds the number. If only one argument is given, then the s... |
SIGN | Returns 1 if positive, -1 if negative, and 0 if zero. |
SQRT | Returns the square root of the number. |
TRUNC | Truncates a number. If only one argument is provided, scale ... |
Function Details¶
ABS¶
Returns the absolute value of a number.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Absolute value of the input
Examples:
CEIL¶
Returns the smallest integer value greater than or equal to the number.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Ceiling value of the input
Examples:
EXP¶
Returns the exponential of the number.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Exponential value of the input
Examples:
FLOOR¶
Returns the largest integer value less than or equal to the number.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Floor value of the input
Examples:
LOG¶
Returns the natural logarithm, or with base if provided.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
base | NUMBER | Logarithm base (optional) |
Returns: NUMBER - Logarithm value
Examples:
MOD¶
Returns the remainder of the division of the first argument by the second.
Parameters:
| Name | Type | Description |
|---|---|---|
a | NUMBER | Dividend |
b | NUMBER | Divisor |
Returns: NUMBER - Remainder after division
Examples:
POWER¶
Raises the first argument to the power of the second.
Parameters:
| Name | Type | Description |
|---|---|---|
base | NUMBER | Base number |
exponent | NUMBER | Exponent |
Returns: NUMBER - Result of base raised to the exponent
Examples:
ROUND¶
Rounds the number. If only one argument is given, then the second parameter is ignored.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
scale | NUMBER | Number of decimal places to round to (optional) |
Returns: NUMBER - Rounded value of the input
Examples:
SIGN¶
Returns 1 if positive, -1 if negative, and 0 if zero.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Sign of the input
Examples:
SQRT¶
Returns the square root of the number.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
Returns: NUMBER - Square root of the input
Examples:
TRUNC¶
Truncates a number. If only one argument is provided, scale is ignored.
Parameters:
| Name | Type | Description |
|---|---|---|
input | NUMBER | Input number |
scale | NUMBER | Number of decimal places to truncate to (optional) |
Returns: NUMBER - Truncated value of the input
Examples: