Floatpower

floatpower

Description:
Function floatpower raises the given value to the power of the exponent.
This function name starts with a lowercase letter.


Parameters:
(Float:value, Float:exponent)
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.


Return Values:
The result of 'value' to the power of 'exponent'.


Examples:
printf("2 to the power of 8 is %f", floatpower(2.0, 8.0));
// Result: 256.0


Related Functions
The following functions may be useful, as they are related to this function in one way or another.
  • float: Converts an integer into a float.
  • floatstr: Converts a string to a float.
  • floatmul: Multiplies two floats with each other.
  • floatdiv: Divide one float by another one.
  • floatadd: Adds two floats together.
  • floatsub: Subtracts one float from another.
  • floatfract: Get the fractional part of a float.
  • floatround: Round a floating point number to an integer value.
  • floatcmp: Compare float values to each other, to validate the comparison.
  • floatsqroot: Calculates the square root of given value.
  • floatlog: Allows you to get the logarithm of a float value.
  • floatsin: Get the sine from a given angle.
  • floatcos: Get the cosine from a given angle.
  • floattan: Get the tangent from a given angle.
  • floatabs: Returns the absolute value of float.