From SA-MP Wiki
|Note: This function name starts with a lowercase letter.|
Raises the given value to the power of the exponent.
|value||The value to raise to a power, as a floating-point number.|
|exponent||The exponent is also a floating-point number. It may be zero or negative.|
The result of 'value' to the power of 'exponent'.
printf("2 to the power of 8 is %f", floatpower(2, 8)); // Result: 256.0
The following functions may be useful, as they are related to this function in one way or another.
- floatsqroot: Calculate the square root of a floating point value.
- floatlog: Get the logarithm of the float value.