simple grade program no errors but wont work correctly

Pages: 12
"Anomaly"?
Couldnt you just use cout << fixed << setprecission(2) and then just make it a double instead of a float. That is easier than rewriting how the program was intended to run.
Last edited on
Anomaly:
,,,
3. an odd, peculiar, or strange condition, situation, quality, etc.
4. an incongruity or inconsistency.

Then it's definitely not that. Precision problems when converting between decimal and floating point are not at all strange, and they are pretty consistent (in the sense that they're always there).
oh wait, 3 is referring to me, lol. definition 4 is what i meant,, yeah,, thats the story I am sticking too!
Topic archived. No new replies allowed.
Pages: 12