Action
Returns the absolute value of a numeric variable.
Syntax
var = ABS(var2)
Remarks
var |
Variable that is assigned the absolute value of var2. Var must be a numeric variable. |
Var2 |
The source variable to retrieve the absolute value from. Var2 must be an integer or long. |
The absolute value of a number is always positive.
See also
NONE
Example
Dim a as Integer, c as Integer
a = -1000
c = Abs(a)
Print c
End
Output
1000