The headers <cstdlib> ([cstdlib.syn]) and
<cmath> ([cmath.syn])
declare the functions described in this subclause.
—end note
]
int abs(int j);
long int abs(long int j);
long long int abs(long long int j);
float abs(float j);
double abs(double j);
long double abs(long double j);
Remarks:
If abs() is called with an argument of type X
for which is_unsigned_v<X> is true and
if X cannot be converted to int
by integral promotion ([conv.prom]), the program is ill-formed.