208 of 318
ZBasic System Library 198 ZX Microcontroller Family 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 Exp, Exp10