Re: Problems with the state tax Project 3


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

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.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]