Handling rounding errors

closed account (2EURX9L8)

and advise on how to go about it?
I tried to get help at our computer lab but the guy working was too busy playing solitaire to really help with anything......
Last edited on
Why not stay away from floating point numbers and use integer types for everything? That way you will not have any rounding errors to care about.
closed account (2EURX9L8)
cause I have to deal with tax percentages and my instructor wants 2 digits correctly rounded after the decimal.



*Your program is to eliminate any rounding error. Make sure all dollar and cents values have only 2 digits after the decimal place – even in memory.



Last edited on
Topic archived. No new replies allowed.