Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3c) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)



     abs(3c)                    DG/UX 4.30                     abs(3c)



     NAME
          abs, labs - return integer absolute value

     SYNOPSIS
          int abs (i)
          int i;

          long int labs (i)
          long int i;

     DESCRIPTION
          abs returns the absolute value of its integer operand.  labs
          is similar, but its argument and its returned value are long
          integers.

     SEE ALSO
          floor(3M).

     CAVEAT
          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.
































     Licensed material--property of copyright holder(s)         Page 1



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