NET/MASTER Network Control Language (NCL) Reference Manual

ABS
Built-in Functions
106126 Tandem Computers Incorporated 4–7
ABS The ABS built-in function returns the absolute value of a number.
ABS(
number
)
number
specifies the numeric expression for which the absolute value is to be returned.
Consideration
A numeric value outside the supported range (1e-50 to 1e+50) results in an error.
Examples
The following example returns the absolute value of 12.34, which is 12.34:
&RESULT = ABS(12.34)
The following example returns the absolute value of 0012.3400, which is 12.34:
SAY ABS(0012.3400)
The following example returns the absolute value of -12.3, which is 12.3:
SAY ABS(-12.3)