Posted by GiantLeap on September 20, 2001 at 20:09:24:
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?
An idea would be to try a type conversion (i.e. float to int) -- why? Think about scientific notation.