Contained Within
Find More Documentation
Featured Support Resources
| Scarica il manuale in formato PDF
NAME
- abs, labs, llabs - return absolute value of integer
SYNOPSIS
-
#include <stdlib.h>
-
-
int abs(int val);
long labs(long lval);
long long llabs(long long llval);
MT-LEVEL
- MT-Safe
DESCRIPTION
-
abs( ) returns the absolute value of its int operand. labs( ) returns the absolute value of its long operand. llabs( ) returns the absolute value of its long long operand.
NOTES
- In 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined.
|
|