ABS() Function - Absolute Value
Syntax
ABS(num{,ERR=lineref})
Description
The ABS() function returns the absolute value of its numeric argument.
Parameter |
Description |
---|---|
num |
Numeric argument. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
Example
>PRINT ABS(123)
123
>PRINT ABS(0)
0
>PRINT ABS(-123)
123