macros:Functions:sqrt: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function squareroot== Returns the square root of a number. ===Usage=== <source lang="mtmacro" line> [h: num = squareroot(num)] [h: num = sqrt(num)] </source> ===Exam...)
 
m (Redirected to squareroot)
Line 1: Line 1:
==Function squareroot==
#REDIRECT [[squareroot]]
Returns the [[wp:Square_root|square root]] of a number.
 
===Usage===
<source lang="mtmacro" line>
[h: num = squareroot(num)]
[h: num = sqrt(num)]
</source>
 
===Examples===
<source lang="mtmacro" line>
[r: squareroot(9)]
[r: squareroot(81)]
</source>
Returns
    3
    9

Revision as of 04:49, 9 March 2009

Redirect to: