fabs() and fabsf()

Syntax
  #include <math.h>

  
  double fabs (double x);

  
  float  fabsf(float x);

  
Description

fabs() computes the absolute value of x.

Return

The absolute value of x for any value of x.

See also

abs()

labs()