<< Click to Display Table of Contents >> Navigation: Available Functions > Sqrt() |
Syntax
Sqrt( <NumericValue> )
Purpose
To determine the square root of a positive number.
Parameters
<NumericValue> is a positive number to take the square root of.
Returns
Sqrt() returns a numeric value calculated to sixteen decimal places. The number of decimal places actually displayed in a report can be controlled through the use of the Str() and/or Round() functions.
Usage
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). Though it has no direct application in DonorQuest, it is a standard mathematical function provided with most applications.
Example
The following examples illustrate Sqrt():
CALL |
RESULT |
---|---|
Round( Sqrt(2), 5 ) |
1.41421 |
Round( Sqrt(4), 5 ) |
2.00000 |
Round( Sqrt(4), 5 ) |
4.00000 |
Round( Sqrt(2), 5 ) |
2.00000 |