Calculates the square root of a number.
Sqrt ( n )
Argument |
Description |
---|---|
n |
The number for which you want the square root |
Double. Returns the square root of n. If n is null, Sqrt returns null.
Sqrt(n) is the same as n^.5. Taking the square root of a negative number causes an execution error.
This statement returns 1.414213562373095:
Sqrt(2)
This statement results in an error at execution time:
Sqrt(-2)
Sqrt method for DataWindows in the DataWindow Reference or online Help