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
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:
Neither b nor n need to be whole numbers. The following example calculates0.250.5:
Last updated