C5_SQRT

 SQRT()
 Return the square root of a positive number
------------------------------------------------------------------------------
 Syntax

     SQRT(<nNumber>) --> nRoot

 Arguments

     <nNumber> is a positive number for which the square root is to be
     computed.

 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



One response to “C5_SQRT

  1. Pingback: C5_SET FIXED | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.