/* llabs example */ #include <stdio.h> /* printf */ #include <stdlib.h> /* llabs */ int main () { long long int n,m; n=llabs(31558149LL); m=llabs(-100000000LL); printf ("n=%lld\n",n); printf ("m=%lld\n",m); return 0; } |
abs | 绝对值(function) |
fabs | 绝对值(function ) |
labs | 绝对值(function) |
ldiv | 整数除(function) |