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