Abs

From AutoIt Wiki

Jump to: navigation, search

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

Contents

Syntax

$x = Abs(expr)

Parameters

exprAny valid numeric expression.

Return Value

Returns the absolute value of expr.

String values return zero.

Example

$var = Abs(-123.45) ; $var = 123.45
Personal tools