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. 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 a = 3;
var b = Pm.Pow(a, 2);   // Returns 9
b = Pm.Pow(a, 1 / 3);   // Returns "third root of three"

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