#include <cmath>float fabs(float num);double fabs(double num); long double fabs(long double num);
The fabs( ) function returns the absolute value of num.
A related function is abs( ).