xref: /csrg-svn/lib/libc/stdlib/abs.3 (revision 50281)
148349Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
242129Sbostic.\" All rights reserved.
320283Smckusick.\"
4*50281Sbostic.\" This code is derived from software contributed to Berkeley by
5*50281Sbostic.\" the American National Standards Committee X3, on Information
6*50281Sbostic.\" Processing Systems.
7*50281Sbostic.\"
842129Sbostic.\" %sccs.include.redist.man%
942129Sbostic.\"
10*50281Sbostic.\"     @(#)abs.3	6.4 (Berkeley) 06/29/91
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