square: Difference between revisions
Jump to navigation
Jump to search
(Redirecting to Macros:Functions:sqr) |
No edit summary |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | |||
|name=square | |||
|description= | |||
Returns the [[wp:Square_(algebra)|square]] of a number. | |||
|usage= | |||
<syntaxhighlight lang="mtmacro" line> | |||
[h: num = square(num)] | |||
[h: num = sqr(num)] | |||
</syntaxhighlight> | |||
|examples= | |||
<syntaxhighlight lang="mtmacro" line> | |||
[r: square(5)] | |||
[r: square(6)] | |||
</syntaxhighlight> | |||
Returns | |||
25 | |||
36 | |||
}} | |||
[[category:Mathematical Function]] |
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