Update cookies preferences
Promotic

Pow - method of the Pm object

Description:
Computes the value of "x raised to the power of y".
Syntax:
Double Pow(Double nX, Double nY)
Parameters:
nX(Double) Base number
nY(Double) Requested exponent
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.

If the computation results in a complex number, then the method returns the NaN value (it can be tested by the Pm.IsValid method). This means that in reality the nX should not be a negative number.
The high value of the nY exponent may easily lead to floating-point overflow and returns the Infinity value.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var val;
val = Pm.Pow(3, 2);   // Returns 9
val = Pm.Pow(3, 1 / 3);   // Returns "third root of three"
val = Pm.Pow(-1, 0.5);   // Returns NaN

History:
Pm8.02.01: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
 
 
- Sin
- Tan
© MICROSYS, spol. s r.o.