Posted by Gerald Glickman on September 21, 2001 at 07:32:42:
In Reply to: Problems with the state tax Project 3 posted by Nathan Reynolds on September 19, 2001 at 16:12:28:
: When I calculate the state tax it gives me 0.72 instead of 0.71. I know the notes say to store the dollars and cents as two seperate integers, but it just returns zeros. With a double at least I get .72 which is kind of close. Any suggestions?
try converting everything to cents, like the documentation says, and converting the cents back to dollars later on. also dont forget there are more variables types than int and double.
Post a Followup