The sqrt() function calculates the square root of a given numeric expression.
Syntax
sqrt(num.exp) |
Parameter(s)
num.exp |
Numeric expression from which the square root is calculated. If num.exp is negative, the function returns 0 and prints an error message. |
Description
Precision is kept for up to 9 digits.
Example(s)
print sqrt(25) |
See Also
BASIC Functions, Numeric Expressions, Statements and Functions