The mathPow() function returns the base to the exponent power, that is, base^exponent.
mathPow()
0.12.0
The base number
The exponent used to raise the base
The result of raising the base to the exponent power (base^exponent)
mathPow(2, 3); // 8mathPow(4, 0.5); // 2mathPow(7, 2); // 49mathPow(8, 1/3); // 2 Copy
mathPow(2, 3); // 8mathPow(4, 0.5); // 2mathPow(7, 2); // 49mathPow(8, 1/3); // 2
Returns the value of a base expression taken to a specified power.
The base value of the expression.
The exponent value of the expression.
The
mathPow()
function returns the base to the exponent power, that is, base^exponent.Since
0.12.0
Param: base
The base number
Param: exponent
The exponent used to raise the base
Returns
The result of raising the base to the exponent power (base^exponent)
Example