pow(base, exponent)

Returns base raised to the power of exponent

Returns the result of raising base to the power of exponent. If base is negative and exponent is not an integral value, or if base is zero and exponent is negative, a runtime error is raised.

Parameters

base: floating point value

exponent: floating point value

Return Value

base raised to the power of exponent

Example command: pow(5.,3)

  • Example Parameters:
    • Base = 5
    • Exponent = 3
      • Returns 125.