xref: /csrg-svn/lib/libc/stdlib/abs.3 (revision 48349)
1*48349Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
242129Sbostic.\" All rights reserved.
320283Smckusick.\"
442129Sbostic.\" %sccs.include.redist.man%
542129Sbostic.\"
6*48349Scael.\"     @(#)abs.3	6.3 (Berkeley) 04/19/91
742129Sbostic.\"
8*48349Scael.Dd
9*48349Scael.Dt ABS 3
10*48349Scael.Os
11*48349Scael.Sh NAME
12*48349Scael.Nm abs
13*48349Scael.Nd integer absolute value function
14*48349Scael.Sh SYNOPSIS
15*48349Scael.Fd #include <stdlib.h>
16*48349Scael.Ft int
17*48349Scael.Fn abs "int j"
18*48349Scael.Sh DESCRIPTION
19*48349ScaelThe
20*48349Scael.Fn abs
21*48349Scaelfunction
22*48349Scaelcomputes
23*48349Scaelthe absolute value of the integer
24*48349Scael.Ar j .
25*48349Scael.Sh RETURN VALUES
26*48349ScaelThe
27*48349Scael.Fn abs
28*48349Scaelfunction
29*48349Scaelreturns
30*48349Scaelthe absolute value.
31*48349Scael.Sh SEE ALSO
32*48349Scael.Xr floor 3 ,
33*48349Scael.Xr labs 3
34*48349Scael.Xr cabs 3
35*48349Scael.Xr hypot 3
36*48349Scael.Xr math 3
37*48349Scael.Sh STANDARDS
38*48349ScaelThe
39*48349Scael.Fn abs
40*48349Scaelfunction conforms to
41*48349Scael.St -ansiC .
42*48349Scael.Sh BUGS
4342129SbosticThe absolute value of the most negative integer remains negative.
44