Abs Function

Syntax:

Abs(Num)

Group:

Math

Description: Returns the absolute value.

Parameters:

Parameter

Description

Num

Return the absolute value of this numeric value. If this value is Null then Null is returned.

Example:

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

See Also:

Sgn