SQR (Function)


Obtains the square root.


SQR (<Expression>)


This statement obtains the square root of the value in <Expression>.
If <Expression> includes a double precision real numeral, the obtained value becomes double precision. Otherwise, a single precision value is obtained.
<Expression> must be a value greater than or equal to 0.


DEFSNG lf1, lf2, lf3, lf4, lf5, lf6, lf7
lf1 = SQR (2)
'Assigns the square root of 2 to lf1.
lf2 = SQR (lf4)
'Assigns the square root of lf4 to lf2.
lf3 = SQR (lf5 + lf6) * lf7
'Assigns the value of the square root of (lf5 +
'lf6) multiplied by lf7 to lf3.


Top