ABS
(Function)

Obtains the absolute value of an expression value.

ABS (<Expression>)

This statement obtains the absolute value of the value designated in <Expression>.
If <Expression> includes a double precision real numeral, the value obtained becomes double precision. Otherwise, a single precision value is obtained.

The absolute value is a numeric value of which the sign is removed. For example, both ABS (-1) and ABS (1) return 1.

DEFSNG lf1, lf2, lf3, lf4
|
|
lf1 = ABS(-2)
|
'Assigns the absolute value of -2 to If1.
|
lf2 = ABS(lf3/lf4)
|
'Assigns the absolute value of (lf3/lf4) to lf2.
|