ABS
Computes the absolute value of the given input.
Syntax
ABS(X)
Arguments
X
Type: numeric
A numeric value.
Returns
Type: same as input
The absolute value of X.
Examples
| X | Output |
|---|---|
| -3 | 3 |
| 3 | 3 |
| 1 + 1 | 2 |
| 0 | 0 |
| 1.1 | 1.1 |
| -1.1 | 1.1 |
| -1 - 5 | 6 |