unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

ABS(3)                     Library Functions Manual                     ABS(3)



NAME
       abs - integer absolute value

SYNOPSIS
       abs(i)
       int i;

DESCRIPTION
       Abs returns the absolute value of its integer operand.

SEE ALSO
       floor(3M) for fabs

BUGS
       Applying  the  abs  function  to  the most negative integer generates a
       result which is the most negative integer.  That is,

       abs(0x80000000)

       returns 0x80000000 as a result.



                                18 January 1983                         ABS(3)