...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <stdio.h>
int main(void) {
int big = 1234567890;
float approx = big;
printf("%d\n", (big - (int)approx));
return 0;
}
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
#include <assert.h>
#include <stdio.h>
#include <float.h>
#include <limits.h>
int main(void) {
assert(UWIDTH(INT_MAX) <= DBL_MANT_DIG);
int big = 1234567890;
double approx = big;
printf("%d\n", (big - (int)approx));
return 0;
}
|
...