Harbour Reference Guide

 

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)
Status

Ready

Compliance

This function is CA-Clipper compliant.

Platforms

All

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30