Navigation bar
  Start Previous page
 180 of 283 
Next page End 175 176 177 178 179 180 181 182 183 184 185  

171
Pow
Type
Function returning Single
Invocation
Pow(mantissa, exponent)
Parameter
Method
Type
Description
mantissa
ByVal
Single
The value to be raised to the power given by the exponent.
exponent
ByVal
Single
The exponent value.
Discussion
This function returns the value of the first parameter raised to the power given by the second parameter. 
This is the same functionality as provided by the exponentiation operator ^.
Certain special cases are detected as shown in the table below.
Mantissa
Exponent
Result
any value
0.0
1.0
negative
non-integral value
NaN
0.0
Negative
+Infinity
Example
Dim r as Single, f as Single
f = 10.0
r = Pow(f, 2.0)
' result is 100.0
See Also
Previous page Top Next page