Function Reference


Abs

Calculates the absolute value of a number.

Abs ( expression )

Parameters

expression Any valid numeric expression.

Return Value

Returns absolute value of expression.

Remarks

A string has a value of zero.

Related

None.

Example

#include <MsgBoxConstants.au3>

; Assign a Local variable an absolute number.
Local $iAbs = Abs(-123.45)

MsgBox($MB_SYSTEMMODAL, "", $iAbs)