POWER

The function POWER takes two Numbers, b and n, and returns bn.

This function takes two Numbers as input: b and n. It returns another Number: the numerical estimation of b taken to the power of n.

Declaration

POWER(b, n) -> number

 

Parameters

b (required, type: Number)
Any Number; this is the base number that will be taken to the power of n.

n (required, type: Number)
Any Number; this is what b will be taken to the power of.

Return Values

number (type: Number)
The numerical estimation of b raised to the nth power, or bn.

Examples

The following example calculates 23:

POWER(2, 3) -> 8

Neither b nor n need to be whole numbers. The following example calculates 0.250.5:

POWER(0.25, 0.5) -> 0.5