Sqrt - method of the Pm object
Description:
The square root of a number.
Syntax:
Double Sqrt(Double nValue)
Parameters:
nValue | (Double) Number greater than 0 |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var nSqr = Pm.Sqrt(4);
// Returns 2
nSqr = Pm.Sqrt(23);
// Returns 4.79583152331272
nSqr = Pm.Sqrt(0);
// Returns 0
nSqr = Pm.Sqrt(-4);
// Returns NaN
Dim nSqr
nSqr = Pm.Sqrt(4)
' Returns 2
nSqr = Pm.Sqrt(23)
' Returns 4.79583152331272
nSqr = Pm.Sqrt(0)
' Returns 0
nSqr = Pm.Sqrt(-4)
' Returns NaN