Sqrt - method of object Pm
Returns the square root of a number.
Sqrt(nValue As Double) As Double
|nValue||(Double) can be any valid numeric expression greater or equal to 0|
The method can also be called in the graphic item events for Web Panels
The method is functional also in Macro expression $.expr.
For any roots of defined number it is possible to use the Pm.Pow
method. For example third root: Pm.Pow(x,1/3)
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