xref: /original-bsd/lib/libc/stdlib/abs.3 (revision c374ae69)
@(#)abs.3 6.1 (Berkeley) 05/15/85

ABS 3 ""
.AT 3
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
BUGS
Applying the abs function to the most negative integer generates a result which is the most negative integer. That is,
"abs(0x80000000)"

returns 0x80000000 as a result.