/* * "Floating point is strange", part 1. */ #include int main(void) { for (float f = 0.0; f != 1.0; f+=.1) { printf("%f\n", f); /* uncomment to show why output is not what you might think printf("%.10f\n", f); */ } return 0; }