square: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
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 |
Revision as of 17:42, 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