note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
floatpower
warning
This function starts with a lowercase letter.
Description
Raises the given value to the power of the exponent.
Name | Description |
---|---|
Float:value | The value to raise to a power, as a floating-point number. |
Float:exponent | The exponent is also a floating-point number. It may be zero or negative. |
Returns
The result of 'value' to the power of 'exponent'.
Examples
printf("2 to the power of 8 is %.1f", floatpower(2.0, 8.0));
// Result: 256.0
Related Functions
- floatsqroot: Calculate the square root of a floating point value.
- floatlog: Get the logarithm of the float value.