Everything

powf


Calculates a power of a floating-point number.

[Format]

#include <mathf.h>

float powf (float x, float y);

[Parameters]

x Value to be raised to a power

y Power value

[Return values]

Normal: Value of x raised to the power y

Abnormal: Domain error: Returns not-a-number.

[Remarks]

A domain error occurs if x is 0.0 and y is 0.0 or less, or if x is negative and y is not an integer.