power() Function

Function

power( base, exponent )

Returns the base number raised to the specified exponent.

Parameters

Keyword Type Description

base

Decimal

The base for exponentiation.

exponent

Decimal

The power that the base will be raised to.

Returns

Decimal

Usage considerations

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

Open in Github Built: Fri, Dec 03, 2021 (02:38:50 PM)

On This Page

FEEDBACK