ABS(3-BSD) RISC/os Reference Manual ABS(3-BSD)
NAME
abs - integer absolute value
SYNOPSIS
abs(i)
int i;
DESCRIPTION
abs returns the absolute value of its integer operand.
SEE ALSO
floor(3M) for fabs
ERRORS
Applying the abs function to the most negative integer gen-
erates a result which is the most negative integer. That
is,
abs(0x80000000)
returns 0x80000000 as a result.
Printed 1/15/91 Page 1