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)
Related
Exp, Log
Example
$x = Sqrt(2) ;returns 1.4142135623731
$y = sqrt(9) ;returns 3