Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
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) |