I just started learning java because of school, and we have this machine exercise about money and denominations. My code seems right and no errors have been found. Moreover, when I input different numbers, the output is right except for one. When I input 2143.99, it adds up to 2143.98 only. I tried inputting 2143.98, and the output is correct. I tried 2143.97, but the output adds up to only 2143.96. I tried different decimals and I found out that it's correct for even-numbered decimals for 2143. I tried inputting 3143.99, 4143.99, 5143.99, and so on, and everything is correct. It seems like the only one wrong is 2143. Wth is wrong with it?HELP PLEASEEEE!


LinkBack URL
About LinkBacks
HELP PLEASEEEE!
Reply With Quote
