Re: Problems with the state tax Project 3


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

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.


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 ]