abs

From RPTools Wiki
Revision as of 11:44, 1 December 2008 by Craig (talk | contribs) (New page: ==Function abs== 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: abs(number)] [h: absol...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function abs

Returns the absolute value of a number. The absolute value of a number is the number without the sign.

Usage

[h: abs(number)]
[h: absolutevalue(number)]

Examples

[r: abs(-3)]

Returns 3.

[r: abs(4)]

Returns 4.