Small company logo:
   History
 
Advertising banner:
 
 Abs
Home • Help • Customization Tools • FCAS • Language Reference • Abs
 
Purpose
Computes the absolute value of a numeric expression.
Syntax
Abs (NumericExpression)


NumericExpression
Abs returns the unsigned magnitude of any numeric expression. For example, Abs(-21) returns 21 and Abs(21) returns 21. The return value from the Abs function will be of the same type as that of the argument.

Example
Sub Main()
        Print "Absolute value of .3456 is:",
Abs(.3456)
        Print "Absolute value of -.3456 is:",
Abs(.3456)
End Sub