Built-in functions: math_pow()

The function math_pow() calculates an exponential expression.

Declaration

float math_pow( float aBase, float aExponent )

Parameters

aBase

The base value to calculate.

aExponent

The exponent value to calculate.

Discussion

The function math_pow() calculates the aBase value raised to the power of aExponent. For example:

var float x = 2.5; var float x2 = math_pow( x, 2.0 ); // x2 = 6.25 var float x3 = math_pow( x, 3.0 ); // x3 = 15.625