BSD 4_2 development
[unix-history] / usr / man / man3 / abs.3
.TH ABS 3 "18 January 1983"
.SH NAME
abs \- integer absolute value
.SH SYNOPSIS
.nf
.B abs(i)
.B int i;
.fi
.SH DESCRIPTION
.I Abs
returns the absolute value of its integer operand.
.SH SEE ALSO
floor(3M) for
.I fabs
.SH BUGS
Applying the \fIabs\fP function to the most negative integer generates a
result which is the most negative integer. That is,
.IP "abs(0x80000000)"
.LP
returns 0x80000000 as a result.