ABS
Computes the absolute value of the given input.
Syntax
Arguments
X
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 |
Transformation job example
SQL
Query result
abs_example |
---|
3 |
Last updated