Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>sqrt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SQRT()
 Return the square root of a positive number
------------------------------------------------------------------------------
 Syntax

     SQRT(<nNumber>) --> nRoot

 Arguments

     <nNumber> is a positive number to take the square root of.

 Returns

     SQRT() returns a numeric value calculated to double precision.  The
     number of decimal places displayed is determined solely by SET DECIMALS
     regardless of SET FIXED.  A negative <nNumber> returns zero.

 Description

     SQRT() is a numeric function used anywhere in a numeric calculation to
     compute a square root (e.g., in an expression that calculates standard
     deviation).

 Examples

     .  These examples show various results of SQRT():

        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

 Files:  Library is CLIPPER.LIB.

See Also: SET DECIMALS SET FIXED

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