Abs Function

Syntax

Abs(Num)

Group

Math

Description

Returns the absolute value.

Parameters

Parameters Description
Num Returns the absolute value of this numeric value. If this value is Null, Null is returned.

See also

Sgn


Sub Main
    Debug.Print Abs(9)  ' 9
    Debug.Print Abs(0)  ' 0
    Debug.Print Abs(-9) ' 9
End Sub