Sqr
Function Sqr( numeric expression )
Returns the square root of a positive numeric expression.
Syntax a = Sqr( b )
Remarks
Sqr calculates the square root of numeric expression as long as
numeric expression is both positive and real.
Restrictions
Trying to take the square root of a negative number will cause a runtime error in the script.
See Also:
Example Script
NUMBER i
FOR i = -5 TO 5 STEP 3
IF SGN(i) >= 0 THEN
PRINT "Square Root of "; i; " is "; SQR(i)
ENDIF
NEXT i
Script Output
Square Root of 1 is 1
Square Root of 4 is 2
Square Root of 7 is 2.64575131106459