squareroot: Difference between revisions
Jump to navigation
Jump to search
(Redirecting to Macros:Functions:sqrt) |
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
||
Line 1: | Line 1: | ||
{{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
39