xref: /original-bsd/lib/libc/stdlib/labs.3 (revision c3e32dec)
1.\" Copyright (c) 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)labs.3	8.1 (Berkeley) 06/04/93
11.\"
12.Dd
13.Dt LABS 3
14.Os
15.Sh NAME
16.Nm labs
17.Nd return the absolute value of a long integer
18.Sh SYNOPSIS
19.Fd #include <stdlib.h>
20.Ft long
21.Fn labs "long j"
22.Sh DESCRIPTION
23The
24.Fn labs
25function
26returns the absolute value of the long integer
27.Ar j .
28.Sh SEE ALSO
29.Xr abs 3 ,
30.Xr floor 3 ,
31.Xr cabs 3 ,
32.Xr math 3
33.Sh STANDARDS
34The
35.Fn labs
36function
37conforms to
38.St -ansiC .
39.Sh BUGS
40The absolute value of the most negative integer remains negative.
41