abs
int abs (int n);
Absolute value
Returns the absolute value of parameter n ( /n/ ).
In C++, this function is also overloaded in header <cmath> for floating-point types (see cmath abs), in header <complex> for complex numbers (see complex abs), and in header <valarray> for valarrays (see valarray abs).
In C, only the int version exists.
For the long int equivalent see labs.
For the long long int equivalent see llabs.
See also
labs
Absolute value (function )
fabs
Compute absolute value (function )
Lesezeichen