Commit | Line | Data |
---|---|---|
c36150f1 KB |
1 | .\" Copyright (c) 1990 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
6 | .\" @(#)abs.3 6.2 (Berkeley) %G% | |
5fa26a22 | 7 | .\" |
acdfbdb9 | 8 | .TH ABS 3 "" |
c36150f1 | 9 | .UC 7 |
5fa26a22 | 10 | .SH NAME |
c36150f1 | 11 | abs \- return the absolute value of an integer |
5fa26a22 KM |
12 | .SH SYNOPSIS |
13 | .nf | |
c36150f1 KB |
14 | .ft B |
15 | #include <stdlib.h> | |
16 | ||
17 | int | |
18 | abs(int j); | |
19 | .ft R | |
5fa26a22 KM |
20 | .fi |
21 | .SH DESCRIPTION | |
c36150f1 KB |
22 | .B Abs |
23 | returns the absolute value of the integer | |
24 | .IR n . | |
5fa26a22 | 25 | .SH SEE ALSO |
c36150f1 KB |
26 | floor(3), labs(3) |
27 | .SH STANDARDS | |
28 | .B Abs | |
29 | conforms to ANSI X3.159-1989 (``ANSI C''). | |
5fa26a22 | 30 | .SH BUGS |
c36150f1 | 31 | The absolute value of the most negative integer remains negative. |