Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor, ceil, fmod, fabs, rint



ABS(3,L)                    AIX Technical Reference                    ABS(3,L)



-------------------------------------------------------------------------------
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 twos-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, rint."


























Processed November 7, 1990         ABS(3,L)                                   1



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