Abs
From AutoIt Wiki
Abs calculates the absolute value of a number. Adapted from AutoIt docs.
Contents |
[edit] Syntax
$x = Abs(expr)
[edit] Parameters
| expr | Any valid numeric expression. |
[edit] Return Value
Returns the absolute value of expr.
String values return zero.
[edit] Example
$var = Abs(-123.45) ; $var = 123.45
