Commit | Line | Data |
---|---|---|
acdfbdb9 | 1 | .\" @(#)abs.3 6.1 (Berkeley) %G% |
5fa26a22 | 2 | .\" |
acdfbdb9 | 3 | .TH ABS 3 "" |
5fa26a22 KM |
4 | .AT 3 |
5 | .SH NAME | |
6 | abs \- 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 | 14 | returns the absolute value of its integer operand. |
5fa26a22 | 15 | .SH SEE ALSO |
6f9cb070 | 16 | floor(3M) for |
5fa26a22 KM |
17 | .I fabs |
18 | .SH BUGS | |
6f9cb070 KM |
19 | Applying the \fIabs\fP function to the most negative integer generates a |
20 | result which is the most negative integer. That is, | |
21 | .IP "abs(0x80000000)" | |
22 | .LP | |
23 | returns 0x80000000 as a result. |