Sqrt

Calculates the square root.

Syntax:

Sqrt(x)

Parameters:

(f) x floating point number.

Returns:

(f) the square root result.

 

The Sqrt function calculates the square root of the passed parameter. If the passed parameter is negative, a domain error occurs.

Example:


real=AskLine("Square Root", "Enter a positive number", "269", 0)
answer=Sqrt(real)
Message("Square root of %real% is", answer)
See Also:

Operators **