abs
integer absolute value function
You're viewing an older version of this page (#3225). View the current version.
NAME
abs
INTERFACE
#include <stdlib.h> int abs ( int j )
DESCRIPTION
The abs function computes the absolute value of the integer \c j.
RETURN VALUES
The abs function returns the absolute value.
SEE ALSO
reference:cabs (3) , fabs (3) , floor (3) , reference:hypot (3) , reference:imaxabs (3) , labs (3) , reference:llabs (3) , reference:math (3)
STANDARDS
The abs function conforms to
BUGS
The absolute value of the most negative integer remains negative.