Abs: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Brendon (talk | contribs)
No edit summary
Line 13: Line 13:
PRINT "Abs(2) = " & Abs(2)
PRINT "Abs(2) = " & Abs(2)
</pre>
</pre>
'''Output'''
 
== Output ==


<pre>
<pre>
Line 20: Line 21:
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[sgn|SGN]]
[[sgn|SGN]]

Revision as of 20:09, 8 August 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

SGN