SquareRoot (Float function)

From m204wiki
Revision as of 20:59, 20 October 2010 by JAL (talk | contribs) (Created page with "This 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 squa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

SquareRoot syntax

  %value = number: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