SQRT


The SQRT function returns the mathematical square root of a value.

 

COMMAND SYNTAX

SQRT(expression)

 

SYNTAX ELEMENTS

The expression should evaluate to a positive numeric value as the authors do not want to introduce a complex number type within the language. Negative values will cause a math error.

 

NOTES

The function calculates the result at the highest precision available and then truncates the answer to the required PRECISION.

 

EXAMPLES

FOR I = 1 TO 1000000
    J=SQRT(I)
NEXT I


jBC