Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>sqrt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SQRT()


Syntax:     SQRT(<expN>)

Purpose:    To return the square root of the specified numeric
            expression.

Argument:   <expN> is a numeric expression from which a square root
            is to be returned.  SQRT() operates on positive numbers
            only.

Returns:    A numeric value.

            The value returned by SQRT() is calculated to double
            precision.  The number of decimal places displayed is
            specified by SET DECIMALS regardless of SET FIXED.  A
            negative <expN> returns zero.


----------------------------------- Examples -------------------------------

   SET DECIMALS TO 5

   ? SQRT(2)                  && Result: 1.41421
   ? SQRT(4)                  && Result: 2.00000
   ? SQRT(4) ** 2             && Result: 4.00000
   ? SQRT(2) ** 2             && Result: 2.00000


See Also: SET DECIMALS SET FIXED

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson