double abs (double x); float abs (float x);long double abs (long double x);
double abs (double x); float abs (float x);long double abs (long double x); double abs (T x); // additional overloads for integral types
int
values).<cmath>
) for the integral types: These overloads effectively cast x to a double
before calculations (defined for T being any integral type).
|
|
abs (3.1416) = 3.1416 abs (-10.6) = 10.6 |