The pow native AI script function returns the value of a base raised to the power of an exponent.
(ret)pow(pow: f, exponent: f) // pow_ff_f
(max)pow(2, 8);
This example code calls the pow function with base value 2 and exponent value 8, and returns the result of raising 2 to the power of 8.
This function is equivalent to the powf
function in the C++ standard library.