Index // Sqr


Format:

sqr( expression )
sqrt( expression )

Description:

Returns the square root of the number expression. A similar result can be obtained by erecting expression to the power 1/2. Introduced for compatibility with other versions of BASIC.

See Also:

Exp, Log

Example:

print sqr(2)
print sqrt(10)
will print
1.414214
3.162278

Revised:

0.9.6.51