Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ abs(3) — SunOS 4.1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ieee_functions(3M)

ABS(3)  —  C LIBRARY FUNCTIONS

NAME

abs − integer absolute value

SYNOPSIS

abs(i)
int i;

DESCRIPTION

abs() returns the absolute value of its integer operand. 

SEE ALSO

ieee_functions(3M) for fabs()

BUGS

Applying the abs() function to the most negative integer generates a result which is the most negative integer.  That is, abs(0x80000000) returns 0x80000000 as a result. 

Sun Release 4.1  —  Last change: 6 October 1987

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