abs: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Applied Template:MacroFunction)
(Redirecting to absolutevalue)
Line 1: Line 1:
{{MacroFunction
#REDIRECT [[absolutevalue]]
|name=abs
|description=Returns the absolute value of a number. The absolute value of a number is the number without the sign.
 
|usage=
<source lang="mtmacro" line>
[h: val = abs(num)]
[h: val = absolutevalue(num)]
</source>
 
|examples=
<source lang="mtmacro" line>
[r: abs(-3)]
</source>
Returns 3.
 
<source lang="mtmacro" line>
[r: abs(4)]
</source>
Returns 4.
 
}}

Revision as of 21:54, 6 March 2009

Redirect to: