Core Function Sqrt

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> Sqrt( <expression> ) </pre> === Description === Returns the square root of a specified number. === Parameters === ==== expression ==== Any valid numeric expression. =...")

Latest revision as of 09:55, 3 December 2011

Sqrt( <expression> )

Contents

Description

Returns the square root of a specified number.

Parameters

expression

Any valid numeric expression.

Return Value

Returns the square-root.

Remarks

To compute an nth root, use the power operator: x ^ (1/n) MsgBox("The cube root of 27 is: " . (27.0 ** (1.0/3.0)) );

Example

$x = Sqrt(2);  //returns 1.4142135623731
$y = Sqrt(9);  //returns 3
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox