On this page

    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

    SELECT ABS(0.0)
    -- 0.0
    
    SELECT ABS(-2)
    -- 2
    
    SELECT ABS(NULL)
    -- None