Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sqrt - method of object Pm

Description:
Returns the square root of a number.
Syntax:
Sqrt(nValue As Double) As Double
Calling:
n = Pm.Sqrt(nValue)
Parameters:
nValue(Double) can be any valid numeric expression greater or equal to 0
Note:
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).
Example:
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
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Sqrt
 
 
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice