SquareRoot (Float function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (example)
m (example)
Line 14: Line 14:


==Usage notes==
==Usage notes==
<ul><li><var>SquareRoot</var> is available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.2.</ul>
<ul><li><var>SquareRoot</var> is available as of <var class="product">[[Sirius Mods|Sirius Mods]]</var> Version 7.2.</ul>


==Examples==
==Examples==

Revision as of 17:46, 4 May 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

Examples

  1. The following displays the square root of 3.14159:

    printText {3.14159:squareroot}

  2. The following displays the square root of the number in %x:

    printText {%x:squareroot}

See also