macros:Functions:sqr

From RPTools Wiki
Revision as of 09:27, 14 December 2008 by Craig (talk | contribs) (New page: ==Function square== Returns the square of a number. ===Usage=== <source lang="mtmacro" line> [h: num = square(num)] [h: num = sqr(num)] </source> ===Examples=== <...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function square

Returns the square of a number.

Usage

[h: num = square(num)]
[h: num = sqr(num)]

Examples

[r: square(5)]
[r: square(6)]

Returns

   25
   36