Command: Sqr

Index // Sqr


Format:

sqr( expression )
sqrt( expression )

Description:

Calculates the square root 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(4)
print sqr(2)
print 2^(1/2)
will print
2
1.414214
1.414214

Revised:

0.9.6.51