Sqrt PowerScript function
Description
Calculates the square root of a number.
Syntax
1 |
<span>Sqrt</span> ( <span>n</span> ) |
Argument |
Description |
---|---|
n |
The number for which you want the square |
Return Values
Double. Returns the square root of n.
If n is null, Sqrt returns null.
Usage
Sqrt(n) is the same
as n^.5. Taking the square root of a negative
number causes an execution error.
Examples
This statement returns 1.414213562373095:
1 |
<span>Sqrt</span>(2) |
This statement results in an error at execution time:
1 |
<span>Sqrt</span>(-2) |
See Also
-
Sqrt method
for DataWindows in the DataWindow Reference or online Help
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest