Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ labs(3c) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)



abs(3C)                                                   abs(3C)



NAME
     abs, labs - return integer absolute value

SYNOPSIS
     int abs (i)
     int i;

     long abs (j)
     long j;

DESCRIPTION
     abs returns the absolute value of its int operand.

     Labs returns the absolute value of its long int operand.

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

SEE ALSO
     floor(3M).
































Page 1                        CX/UX Programmer's Reference Manual



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