macros:Functions:sqrt

From RPTools Wiki
Revision as of 09:31, 14 December 2008 by Craig (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function squareroot

Returns the square root of a number.

Usage

[h: num = squareroot(num)]
[h: num = sqrt(num)]

Examples

[r: squareroot(9)]
[r: squareroot(81)]

Returns

   3
   9