The ABS function returns the absolute value of the argument.
The type of this function is according to the argument type as follows:
Argument Type
|
Function Type
|
Integer
|
Integer
|
Numeric
|
Numeric
|
General Format
Arguments
- Argument-1 must be class numeric.
Returned Values
- The returned value is as follows:
- When the value of argument-1 is zero or positive, (argument-1)
- When the value of argument-1 is negative, (-argument-1)