Function Reference

Sqrt

Calculates the square-root of a number.

Sqrt ( expression )

 

Parameters

number Any nonnegative expression to get the square-root of.

 

Return Value

Success: Returns the square-root.
Failure: Returns 0 and sets @error to 1 if parameter is negative.

 

Remarks

To compute an nth root, use the power operator: x ^ (1/n)
MsgBox(0,"The cube root of 27 is", 27 ^ (1/3) )

 

Related

Exp, Log

 

Example


$x = Sqrt(2)  ;returns 1.4142135623731
$y = sqrt(9)  ;returns 3