CoNMaN
May 4th, 2003, 02:35 PM
Hey, my first post, I was sent here by a friend, This is the problem i have been haveing with my code my our web site
I have been "learning" how to become the web developer under a complete moron at my school. and we recently came across this problem. This site is supposta add up the quanity * the price for the total then add the totals up for the grand total at the bottom. And it dose this great in java.....unlesss you use certain prices with numbers like 2,4,8,16,32,64,128 and so on as the quanities. i did 2 quanties of an item costign 40.29 and then 2 of an item cost 60.47. and the grand total always comes out 1 cent short!!! ***!!! anone who can help here is the source
I have been "learning" how to become the web developer under a complete moron at my school. and we recently came across this problem. This site is supposta add up the quanity * the price for the total then add the totals up for the grand total at the bottom. And it dose this great in java.....unlesss you use certain prices with numbers like 2,4,8,16,32,64,128 and so on as the quanities. i did 2 quanties of an item costign 40.29 and then 2 of an item cost 60.47. and the grand total always comes out 1 cent short!!! ***!!! anone who can help here is the source