Sqrt()

Sqrt()

Calculates the square root of a number.

Syntax

      Sqrt( <nNumber> ) --> <nSqrt>

Arguments

<nNumber> Any numeric value.

Returns

<nSqrt> The square root of <number>.

Description

This function returns the square root of <nNumber>. The precision of this evaluation is based solely on the settings of the SET DECIMAL TO command. Any negative number passed as <nNumber> will always return a 0.

Examples

      SET DECIMAL TO 5
      ? Sqrt( 632512.62541 )
      ? Sqrt( 845414111.91440 )

Compliance

Clipper

Platforms

All

Files

Library is core

Seealso

Round()

Advertisements

3 responses to “Sqrt()

  1. Pingback: Harbour All Functions – S | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | 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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s