Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(S) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     ABS(S)                    UNIX System V                    ABS(S)



     Name
          abs - return integer absolute value

     Syntax
          int abs (i)
          int i;

     Description
          The abs function returns the absolute value of its integer
          operand.

     See Also
          floor(S).

     Note
          In two's-complement representation, the absolute value of
          the negative integer with largest magnitude is undefined.
          Some implementations trap this error, but others simply
          ignore it.

     Standards Conformance
          abs is conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          The X/Open Portability Guide II of January 1987;
          ANSI X3.159-198X C Language Draft Standard, May 13,
          1988;
          IEEE POSIX Std 1003.1-1988 with C Standard Language-
          Dependent System Support;
          and NIST FIPS 151-1.

                                                (printed 6/20/89)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026