Commit | Line | Data |
---|---|---|
ae59e04c | 1 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
c36150f1 KB |
2 | .\" All rights reserved. |
3 | .\" | |
4 | .\" %sccs.include.redist.man% | |
5 | .\" | |
ae59e04c | 6 | .\" @(#)abs.3 6.3 (Berkeley) %G% |
5fa26a22 | 7 | .\" |
ae59e04c CL |
8 | .Dd |
9 | .Dt ABS 3 | |
10 | .Os | |
11 | .Sh NAME | |
12 | .Nm abs | |
13 | .Nd integer absolute value function | |
14 | .Sh SYNOPSIS | |
15 | .Fd #include <stdlib.h> | |
16 | .Ft int | |
17 | .Fn abs "int j" | |
18 | .Sh DESCRIPTION | |
19 | The | |
20 | .Fn abs | |
21 | function | |
22 | computes | |
23 | the absolute value of the integer | |
24 | .Ar j . | |
25 | .Sh RETURN VALUES | |
26 | The | |
27 | .Fn abs | |
28 | function | |
29 | returns | |
30 | the absolute value. | |
31 | .Sh SEE ALSO | |
32 | .Xr floor 3 , | |
33 | .Xr labs 3 | |
34 | .Xr cabs 3 | |
35 | .Xr hypot 3 | |
36 | .Xr math 3 | |
37 | .Sh STANDARDS | |
38 | The | |
39 | .Fn abs | |
40 | function conforms to | |
41 | .St -ansiC . | |
42 | .Sh BUGS | |
c36150f1 | 43 | The absolute value of the most negative integer remains negative. |