.\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" the American National Standards Committee X3, on Information .\" Processing Systems. .\" .\" %sccs.include.redist.man% .\" .\" @(#)abs.3 6.4 (Berkeley) 06/29/91 .\" .Dd .Dt ABS 3 .Os .Sh NAME .Nm abs .Nd integer absolute value function .Sh SYNOPSIS .Fd #include .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.