ABS and ABSVAL functions

The ABS and ABSVAL numeric functions return the absolute value of a supplied number.

SYNTAX

The absolute value of the source number is a number with the same magnitude as the source but without a sign. The parameter must be a numeric value. The result is of the same type as the parameter unless it is NULL, in which case the result is NULL.

For example:
ABS( -3.7 )
returns 3.7
ABS( 3.7 )
returns 3.7
ABS( 1024 )
returns 1024
Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
Syntax diagrams: available types
ESQL numeric functions