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
ABS exampleSELECT ABS(0.0)
-- 0.0
SELECT ABS(-2)
-- 2
SELECT ABS(NULL)
-- None
Was this page helpful?
Glad to hear it! Thank you for your feedback.
Sorry to hear that. Thank you for your feedback.