IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


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
>>-+-ABS----+--(--source_number--)-----------------------------><
   '-ABSVAL-'                        

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

ak05300_.htm | Last updated 2015-03-27 19:26:53