double fabs (double x);
double fabs (double x); float fabsf (float x);long double fabsl (long double x);
double fabs (double x); float fabs (float x);long double fabs (long double x);
double fabs (double x); float fabs (float x);long double fabs (long double x); double fabs (T x); // additional overloads for integral types
<cmath>
) for the integral types: These overloads effectively cast x to a double
(defined for T being any integral type).
|
|
The absolute value of 3.1416 is 3.141600 The absolute value of -10.6 is 10.600000 |