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.\" @(#)abs.3 8.1 (Berkeley) 06/04/93 11.\" 12.Dd 13.Dt ABS 3 14.Os 15.Sh NAME 16.Nm abs 17.Nd integer absolute value function 18.Sh SYNOPSIS 19.Fd #include <stdlib.h> 20.Ft int 21.Fn abs "int j" 22.Sh DESCRIPTION 23The 24.Fn abs 25function 26computes 27the absolute value of the integer 28.Ar j . 29.Sh RETURN VALUES 30The 31.Fn abs 32function 33returns 34the absolute value. 35.Sh SEE ALSO 36.Xr floor 3 , 37.Xr labs 3 38.Xr cabs 3 39.Xr hypot 3 40.Xr math 3 41.Sh STANDARDS 42The 43.Fn abs 44function conforms to 45.St -ansiC . 46.Sh BUGS 47The absolute value of the most negative integer remains negative. 48