restructuring libc
[unix-history] / usr / src / lib / libc / stdlib / abs.3
CommitLineData
acdfbdb9 1.\" @(#)abs.3 6.1 (Berkeley) %G%
5fa26a22 2.\"
acdfbdb9 3.TH ABS 3 ""
5fa26a22
KM
4.AT 3
5.SH NAME
6abs \- integer absolute value
7.SH SYNOPSIS
8.nf
9.B abs(i)
10.B int i;
11.fi
12.SH DESCRIPTION
13.I Abs
6f9cb070 14returns the absolute value of its integer operand.
5fa26a22 15.SH SEE ALSO
6f9cb070 16floor(3M) for
5fa26a22
KM
17.I fabs
18.SH BUGS
6f9cb070
KM
19Applying the \fIabs\fP function to the most negative integer generates a
20result which is the most negative integer. That is,
21.IP "abs(0x80000000)"
22.LP
23returns 0x80000000 as a result.