Abs

From AutoIt Wiki

Jump to: navigation, search

Abs calculates the absolute value of a number. Adapted from AutoIt docs.

Contents

[edit] Syntax

$x = Abs(expr)

[edit] Parameters

exprAny 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
Personal tools