ABS and ABSVAL functions

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

Syntax

Read syntax diagramSkip visual syntax diagram ABSABSVAL (source_number)

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