Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3) — bsd — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)



ABS(3-BSD)          RISC/os Reference Manual           ABS(3-BSD)



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

ERRORS
     Applying the abs function to the most negative integer gen-
     erates a result which is the most negative integer.  That
     is,

     abs(0x80000000)

     returns 0x80000000 as a result.


































                         Printed 1/15/91                   Page 1



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