# 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.

## Example

    #include <MsgBoxConstants.au3>

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

    MsgBox($MB_SYSTEMMODAL, "", $fAbs)