square: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Redirecting to Macros:Functions:sqr)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
#REDIRECT [[Macros:Functions:sqr]]
{{MacroFunction
|name=square
|description=
Returns the [[wp:Square_(algebra)|square]] of a number.
 
|usage=
<source lang="mtmacro" line>
[h: num = square(num)]
[h: num = sqr(num)]
</source>
 
|examples=
<source lang="mtmacro" line>
[r: square(5)]
[r: square(6)]
</source>
Returns
    25
    36
}}
[[category:Mathematical Function]]

Revision as of 04:46, 9 March 2009

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

   25
36