Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)

ABS(3C)  —  HP-UX

NAME

abs − return integer absolute value

SYNOPSIS

int abs (i)
int i;

DESCRIPTION

Abs returns the absolute value of its integer operand. 

The largest negative integer returns itself. 

WARNINGS

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

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

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