FreeBSD 4.7 manual page repository

FreeBSD is a free computer operating system based on BSD UNIX originally. Many IT companies, like DeployIS is using it to provide an up-to-date, stable operating system.

abs - integer absolute value function



      abs - integer absolute value function


      Standard C Library (libc, -lc)


      #include <stdlib.h>
      abs(int j);


      The abs() function computes the absolute value of the integer j.
      The abs() function returns the absolute value.
      cabs(3), fabs(3), floor(3), hypot(3), labs(3), math(3)


      The abs() function conforms to ISO/IEC 9899:1990 (“ISO C89”).


      The absolute value of the most negative integer remains negative.


Based on BSD UNIX
FreeBSD is an advanced operating system for x86 compatible (including Pentium and Athlon), amd64 compatible (including Opteron, Athlon64, and EM64T), UltraSPARC, IA-64, PC-98 and ARM architectures. It is derived from BSD, the version of UNIX developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.