Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Sqrt - method of object Pm

Description:
The square root of a number.
Syntax:
Double Sqrt(Double nValue)
Calling:
n = Pm.Sqrt(nValue)
Parameters:
nValue(Double) Number greater than 0
Note:

This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.

This method is also functional in Web panels.

 
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

History:
Pm8.02.01: Created
PROMOTIC 9.0.7 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