abs, labs, llabs - return absolute value of integer
#include <stdlib.h> int abs(int val);
long labs(long lval);
long long llabs(long long llval);
The abs() function returns the absolute value of its int operand.
The labs() function returns the absolute value of its long operand.
The llabs() function returns the absolute value of its long long operand.
In 2's-complement representation, the absolute value of the largest magnitude negative integral value is undefined.
See attributes(5) for descriptions of the following attributes:
|
attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |