Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Pow - method of object Pm

Description:
Computes the value of "x raised to the power of y"
Syntax:
Pow(nX As Double, nY As Double) As Double
Calling:
n = Pm.Pow(nX, nY)
Parameters:
nX(Double) Base number
nY(Double) Requested exponent
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

 
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.

Example:
Dim a, b
a = 3
b = Pm.Pow(a,2) ' Returns 9
b = Pm.Pow(a,1/3) ' Returns "third root of three"
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
 
 
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice