Abs

From NSB App Studio
Revision as of 20:08, 8 August 2012 by Brendon (talk | contribs)
Jump to navigation Jump to search

ABS(number)

Description

Abs returns the absolute value, or unsigned magnitude, of a numeric expression. The required parameter, number, is any valid numeric expression. If number is NULL, Abs returns NULL.

Example

REM Abs Example
'Abs returns the absolute value of a number.
PRINT "Abs(-2) = " & Abs(-2)
PRINT "Abs(2) = " & Abs(2)

Output

Abs(-2) = 2
Abs(2) = 2

Related Items

SGN