Abs Function

Syntax:

Abs(Num)

Group: Math

Description:
Return the absolute value.

Parameter Description

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

See Also: Sgn.

Example:

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