Everything

pow / powf / powl


Calculates a power of floating-point number.

[Format]

#include <math.h>

double pow (double x, double y);

float powf (float x, float y);

long double powl (long double x, long double 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.