Abs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
'''Description''' | '''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. | 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''' | '''Example''' |
Revision as of 17:03, 20 June 2012
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