The absolute value function returns the absolute value of a numeric value, which is the numeric value of the number regardless of sign.
Syntax:
►►─┬─ ABS ────────────┬─ (value) ─────────────────────────────────────────────►◄ ├─ @ABS ───────────┤ ├─ ABS-VAL ────────┤ └─ ABSOLUTE-VALUE ─┘
Invocation names:
ABS @ABS ABS-VAL ABSOLUTE-VALUE
Parameters:
Specifies the numeric value whose absolute value is calculated.
Value may be halfword-binary, fullword-binary, signed or unsigned, or short or longword floating point. Any length appropriate to the data type is acceptable. The result field will be the same data type and length as value.
|
Copyright © 2013 CA.
All rights reserved.
|
|