GNU/Linux |
RedHat 6.2(Zoot) |
|
![]() |
abs(3) |
![]() |
abs − computes the absolute value of an integer.
#include <stdlib.h>
int abs(int j);
The abs() function computes the absolute value of the integer argument j.
Returns the absolute value of the integer argument.
SVID 3, POSIX, BSD 4.3, ISO 9899
Trying to take the absolute value of the most negative integer is not defined.
ceil(3), floor(3), fabs(3), labs(3), rint(3)
![]() |
abs(3) | ![]() |