squareroot: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Redirecting to Macros:Functions:sqrt)
m (Applied Template:MacroFunction)
Line 1: Line 1:
#REDIRECT [[Macros:Functions:sqrt]]
{{MacroFunction
|name=squareroot
|description=
Returns the [[wp:Square_root|square root]] of a number.
 
|usage=
<source lang="mtmacro" line>
[h: num = squareroot(num)]
[h: num = sqrt(num)]
</source>
 
|example=
<source lang="mtmacro" line>
[r: squareroot(9)]
[r: squareroot(81)]
</source>
Returns
    3
    9
}}
[[Category:Mathematical Function]]

Revision as of 04:49, 9 March 2009

squareroot() Function

Returns the square root of a number.

Usage

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

Example

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

Returns

   3
9