abs function — Computes an absolute value
int abs(int x) long abs(long x)
The abs function returns the absolute value of x. The <cmath> header declares floating-point versions of the abs function.
abs
x
<cmath>
labs function, abs function in <cmath>