Math.pow()

Get the value of a base raised to a power.

Signature

Math.pow(x: Number, power: Number) => Number

Description

Gets the value of a base raised to a power.

Parameters

Parameter Type Required Description

x

Number

true

Base number.

power

Number

true

Exponent number.

Return value

Type Description

Number

Number representing the provided base number taken to the power of the specified exponent.

Examples

Math.pow(2, 8)
256.0
\