xref: /csrg-svn/lib/libc/stdlib/abs.3 (revision 61180)
1*61180Sbostic.\" Copyright (c) 1990, 1991, 1993
2*61180Sbostic.\"	The Regents of the University of California.  All rights reserved.
320283Smckusick.\"
450281Sbostic.\" This code is derived from software contributed to Berkeley by
550281Sbostic.\" the American National Standards Committee X3, on Information
650281Sbostic.\" Processing Systems.
750281Sbostic.\"
842129Sbostic.\" %sccs.include.redist.man%
942129Sbostic.\"
10*61180Sbostic.\"     @(#)abs.3	8.1 (Berkeley) 06/04/93
1142129Sbostic.\"
1248349Scael.Dd
1348349Scael.Dt ABS 3
1448349Scael.Os
1548349Scael.Sh NAME
1648349Scael.Nm abs
1748349Scael.Nd integer absolute value function
1848349Scael.Sh SYNOPSIS
1948349Scael.Fd #include <stdlib.h>
2048349Scael.Ft int
2148349Scael.Fn abs "int j"
2248349Scael.Sh DESCRIPTION
2348349ScaelThe
2448349Scael.Fn abs
2548349Scaelfunction
2648349Scaelcomputes
2748349Scaelthe absolute value of the integer
2848349Scael.Ar j .
2948349Scael.Sh RETURN VALUES
3048349ScaelThe
3148349Scael.Fn abs
3248349Scaelfunction
3348349Scaelreturns
3448349Scaelthe absolute value.
3548349Scael.Sh SEE ALSO
3648349Scael.Xr floor 3 ,
3748349Scael.Xr labs 3
3848349Scael.Xr cabs 3
3948349Scael.Xr hypot 3
4048349Scael.Xr math 3
4148349Scael.Sh STANDARDS
4248349ScaelThe
4348349Scael.Fn abs
4448349Scaelfunction conforms to
4548349Scael.St -ansiC .
4648349Scael.Sh BUGS
4742129SbosticThe absolute value of the most negative integer remains negative.
48