power() Function

Returns the base number raised to the specified exponent.

Syntax

power( base, exponent)

base: (Decimal) The base for exponentiation.

exponent: (Decimal) The power that the base will be raised to.

Returns

Decimal

Notes

If all parameter values are integers, the function will return an integer.

Examples

You can experiment with this function in the test box below.

Test Input

power(1.2,3) returns 1.728

FEEDBACK