ABS

    Mathematical functions

    Syntax

    ABS( number )
    

    Description

    Returns the absolute value of number.

    Argument types:

    • numberNumber

    Return type: Same type as (number)

    Examples

    ABS(-5) = 5
    

    Data source support

    Materialized Dataset, ClickHouse 1.1, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3