pow() and powf()

Syntax
  #include <math.h>

  
  double pow (double x, double y);

  
  float  powf(float x, float y);

  
Description

pow() computes x to the power of y (that is, xy).

Return

xy, if x > 0

1, if y == 0

, if ( x == 0 && y < 0)

NAN, if ( x < 0 && y is not integral). Also, sets errno to EDOM.

±×, with the same sign as x, if the result is too large.

See also

exp() and expf()

ldexp() and ldexpf()

log() and logf()

modf() and modff()