SquareRoot (Float function): Difference between revisions
Jump to navigation
Jump to search
m (match syntax diagram to template; fix tags and links) |
m (example) |
||
Line 18: | Line 18: | ||
==Examples== | ==Examples== | ||
<ol><li>The following displays the square root of <code>3.14159</code>: | <ol><li>The following displays the square root of <code>3.14159</code>: | ||
<p class="code">printText {3.14159:squareroot} | <p class="code">[[PrintText statement|printText]] {3.14159:squareroot} | ||
</p> | </p> | ||
<li>The following displays the square root of the number in <code>%x</code>: | <li>The following displays the square root of the number in <code>%x</code>: |
Revision as of 05:51, 4 February 2011
Square root of a number (Float class)
The SquareRoot intrinsic function returns a number that is the square root of the method object. An attempt to obtain the square root of a negative number results in request cancellation.
Syntax
%number = float:SquareRoot
Syntax terms
%number | A variable to receive the square root of the method object. |
---|---|
float | A Float value. |
Usage notes
- SquareRoot is available as of "Sirius Mods" Version 7.2.
Examples
- The following displays the square root of
3.14159
:printText {3.14159:squareroot}
- The following displays the square root of the number in
%x
:printText {%x:squareroot}