Pow - method of object Pm
Computes the value of "x raised to the power of y"
Pow(nX As Double, nY As Double) As Double
|nX||(Double) Base number|
|nY||(Double) Requested exponent|
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.
If the computation results in a complex number, then the method returns NaN
. 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 returning the Infinity value.
a = 3
b = Pm.Pow(a,2) ' Returns 9
b = Pm.Pow(a,1/3) ' Returns "third root of three"