AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

ABS (3C) ABS (3C) NAME abs - return integer absolute value SYNOPSIS int abs (i) int i; DESCRIPTION Abs returns the absolute value of its integer operand. BUGS 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). - 1 -

ABS (3C)<br />

ABS (3C)<br />

NAME<br />

abs - return integer absolute value<br />

SYNOPSIS<br />

int abs (i)<br />

int i;<br />

DESCRIPTION<br />

Abs returns the absolute value of its integer operand.<br />

BUGS<br />

In two's-complement representation, the absolute value of the<br />

negative integer with largest magnitude is undefined. Some implementations<br />

trap this error, but others simply ignore it.<br />

SEE ALSO<br />

floor( 3M).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!