


Abs
Purpose
Returns the absolute value of a number.
Arguments
Abs( number )
Notes
The argument number can be any valid numeric expression. The absolute value of a number is its
unsigned magnitude. For example, ABS(-1) and ABS(1) both return 1.
Example
This example uses Abs to determine the absolute difference between two numbers. The difference is
157.
X1 = -27: X2 = 130
| // Identify two numbers.
|
Difference = Abs(X1 - X2)
| // Find range of numbers.
|