Representing money.

If you must use double, look at printf() for formatting output and explore the topic "rounding" for conditioning the values to be what you want.