ABS(3C)                                                                ABS(3C)


NAME
     abs, labs - return integer absolute value

SYNOPSIS
     #include <stdlib.h>

     int abs (int i);

     long int labs (long int i);

DESCRIPTION
     abs and labs return the absolute value of their int or long int operand.

SEE ALSO
     floor(3M).

CAVEAT
     In two's-complement representation, the absolute value of the negative
     integer with largest magnitude is undefined.  In this case, abs (or labs)
     will generate a SIGFPE.


                                                                        Page 1