...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdio.h> int main(void) { long int big = 1234567890; float approx = big; printf("%d%ld\n", (big - (long int)approx)); return 0; } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <assert.h> #include <float.h> #include <limits.h> #include <stdio<math.h> #include <float<stdint.h> #include <limits<stdio.h> extern size_t popcount(uintmax_t); /* See INT35-C */ #define PRECISION(umax_value) popcount(umax_value) int main(void) { assert(PRECISION(LONG_MAX) <= DBL_MANT_DIG * log2(DBLFLT_MANT_DIGRADIX)); long int big = 1234567890; double approx = big; printf("%d%ld\n", (big - (long int)approx)); return 0; } |
...