squareroot: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:squareroot moved to squareroot) |
No edit summary |
||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: num = squareroot( | [h: num = squareroot(number)] | ||
[h: num = sqrt( | [h: num = sqrt(number, precision)] | ||
</source> | </source> | ||
'''Parameters''' | |||
{{param|number|Value to determine the square root of.}} | |||
{{param|precision|Number of decimal points. Defaults to 10.}} | |||
|example= | |example= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[r: squareroot(9)] | [r: squareroot(9)] | ||
[r: squareroot( | [r: squareroot(80)] | ||
[r: sqrt(10,2)] | |||
</source> | </source> | ||
Returns | '''Returns''' | ||
<source lang="mtmacro"> | |||
3 | |||
8.9442719100 | |||
3.16 | |||
</source> | |||
}} | }} | ||
[[Category:Mathematical Function]] | [[Category:Mathematical Function]] |
Revision as of 18:39, 22 May 2020
squareroot() Function
Returns the square root of a number.
Usage
[h: num = squareroot(number)]
[h: num = sqrt(number, precision)]
Parameters
number
- Value to determine the square root of.precision
- Number of decimal points. Defaults to 10.
Example
[r: squareroot(9)]
[r: squareroot(80)]
[r: sqrt(10,2)]
Returns
3
8.9442719100
3.16