ABS ABSolute value
Function
ABS gives the absolute magnitude of a numeric value, that is the value without a positive or negative sign.
How to use ABS
ABS is followed by a numeric value. An expression must be enclosed in brackets, for example
50 LET x=ABS(y-z)
ABS returns the absolute value of the numeric value.
Example
The command
PRINT ABS -34.2
displays 34.2.
Format
- ABS num-const
- ABS num-var
- ABS (num-expr)
See also