ABS
Categories: Math
ABS
Computes the absolute value of a numeric expression.
Syntax
ABS(numeric_expression NUMERIC) → NUMERIC
- numeric_expression: BINARY, DECIMAL, DOUBLE, FLOAT, INTEGER
Examples
{{< codeheader "ABS example" >}}
SELECT ABS(0.0)
-- 0.0
{{< codeheader "ABS example" >}}
SELECT ABS(-2)
-- 2
{{< codeheader "ABS example" >}}
SELECT ABS(NULL)
-- None