#include <math.h>float fabs(float x);
fabsf computes the absolute value of the floating-point number x.
fabsf conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).