macros:Functions:sqr: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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=== <...)
 
m (Redirected to square)
Line 1: Line 1:
==Function square==
#REDIRECT [[square]]
Returns the [[wp:Square_(algebra)|square]] of a number.
 
===Usage===
<source lang="mtmacro" line>
[h: num = square(num)]
[h: num = sqr(num)]
</source>
 
===Examples===
<source lang="mtmacro" line>
[r: square(5)]
[r: square(6)]
</source>
Returns
    25
    36

Revision as of 04:47, 9 March 2009

Redirect to: