abs(3C)
NAME
abs, labs − return integer absolute value
SYNOPSIS
int abs (i)
int i;
long abs (j)
long j;
DESCRIPTION
abs returns the absolute value of its int operand.
Labs returns the absolute value of its long int operand.
BUGS
In two’s-complement representation, the absolute value of the negative integer with largest magnitude is undefined. Some implementations trap this error, but others simply ignore it.
SEE ALSO
CX/UX Programmer’s Reference Manual