SquareRoot (Float function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Float:SquareRoot subtitle}} | |||
This [[Intrinsic classes|intrinsic]] function returns a number that is the [http://en.wikipedia.org/wiki/Square_root square root] of the method object. | This [[Intrinsic classes|intrinsic]] function returns a number that is the [http://en.wikipedia.org/wiki/Square_root square root] of the method object. | ||
An attempt to get the square root of a negative number results in request cancellation. | An attempt to get the square root of a negative number results in request cancellation. | ||
SquareRoot is available as of version 7.2 of the [[Sirius Mods]]. | SquareRoot is available as of version 7.2 of the [[Sirius Mods]]. | ||
== | ==Syntax== | ||
{{Template:Float:SquareRoot syntax}} | |||
===Syntax terms=== | |||
<dl> | <dl> | ||
<dt>%value | <dt>%value | ||
Line 12: | Line 14: | ||
<dd>A Float value. | <dd>A Float value. | ||
</dl> | </dl> | ||
==Examples== | |||
The following displays the square root of 3.14159: | The following displays the square root of 3.14159: | ||
printText {3.14159:squareroot} | printText {3.14159:squareroot} |
Revision as of 13:42, 19 January 2011
Square root of a number (Float class)
This intrinsic function returns a number that is the square root of the method object.
An attempt to get the square root of a negative number results in request cancellation.
SquareRoot is available as of version 7.2 of the Sirius Mods.
Syntax
%number = float:SquareRoot
Syntax terms
- %value
- A variable to receive the square root of the method object.
- number
- A Float value.
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}
See also
List of intrinsic Float methods