sqrt() and sqrtf()

Syntax
  #include <math.h>

  
  double sqrt(double x);

  
  float  sqrtf(float x);

  
Description

sqrt() computes the square root of x.

Return

The square root of x. If x is negative, it returns 0 and sets errno to EDOM.

See also

pow() and powf()