square: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 5: | Line 5: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: num = square(num)] | [h: num = square(num)] | ||
[h: num = sqr(num)] | [h: num = sqr(num)] | ||
</ | </syntaxhighlight> | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: square(5)] | [r: square(5)] | ||
[r: square(6)] | [r: square(6)] | ||
</ | </syntaxhighlight> | ||
Returns | Returns | ||
25 | 25 |
Latest revision as of 23:59, 14 March 2023
square() Function
Returns the square of a number.
Usage
[h: num = square(num)]
[h: num = sqr(num)]
Examples
[r: square(5)]
[r: square(6)]
Returns
2536