-mdoc (version 3)
[unix-history] / usr / src / lib / libc / stdlib / abs.3
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)abs.3 6.3 (Berkeley) %G%
.\"
.Dd
.Dt ABS 3
.Os
.Sh NAME
.Nm abs
.Nd integer absolute value function
.Sh SYNOPSIS
.Fd #include <stdlib.h>
.Ft int
.Fn abs "int j"
.Sh DESCRIPTION
The
.Fn abs
function
computes
the absolute value of the integer
.Ar j .
.Sh RETURN VALUES
The
.Fn abs
function
returns
the absolute value.
.Sh SEE ALSO
.Xr floor 3 ,
.Xr labs 3
.Xr cabs 3
.Xr hypot 3
.Xr math 3
.Sh STANDARDS
The
.Fn abs
function conforms to
.St -ansiC .
.Sh BUGS
The absolute value of the most negative integer remains negative.