ABS (Absolute Value)

Read syntax diagramSkip visual syntax diagram
>>-ABS--(--number--)-------------------------------------------><

returns the absolute value of number. The result has no sign and is formatted according to the current NUMERIC settings.
Here are some examples:
ABS('12.3')       ->    12.3
ABS(' -0.307')    ->    0.307

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/abs.html