Wednesday, August 18, 2010

Visual Basic Math Function : Abs

Purpose : Return the absolute value of a numeric expression.

Syntax :
Abs ( numExpression )

numExpression : Numeric expression of which you want to return the absolute value

aNumber = Abs ( aSignedNumber )

Abs returns the unsigned value of the supplied numeric expression. Abs ( -299 ) then return value is 299.

No comments:

Post a Comment