Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sqrt - method of object Pm

Description:
The square root of a number.
Syntax:
Sqrt(nValue As Double) As Double
Calling:
n = Pm.Sqrt(nValue)
Parameters:
nValue(Double) Number greater than 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 and in the onDraw event of the PmiCanvas graphic item.

 
For any roots of defined number the Pm.Pow method can be used. For example third root: Pm.Pow(x,1/3).
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
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
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