Abs
Function Abs( numeric expression )
Returns an absolute value of numeric expression .
Syntax a = Abs( b - c )
Remarks
The absolute value of a number x is its magnitude without regard to its sign.
For example, the absolute value of -2.0 is 2.0, the absolute value of 1.333 is 1.333
See Also:
Example Script
NUMBER i
FOR i = -5 TO 5
PRINT ABS(i)
NEXT i
Script Output
5
4
3
2
1
0
1
2
3
4
5