Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor, ceil, fmod, fabs

abs

Purpose

     Returns the absolute value of an integer.

Library

     Standard C Library (libc.a)

Syntax

     int abs (i)
     int i;

Description

     The  abs subroutine  returns  the absolute  value of  its
     integer operand.

     Note:   A two's-complement  integer can  hold a  negative
     number whose absolute value is  too large for the integer
     to hold.  When given this largest negative value, the abs
     subroutine returns the same value.

Related Information

     In this book:  "floor, ceil, fmod, fabs."

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