The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Program trying to calculate money, won't work

My program is supposed to ask the user to enter a dollar value from up to 100 dollars, and output the amount of bills and coins required to create that amount with the least change possible. I'm not completely finished, however when I test run the program and I enter values below 50, it doesnt seem to give me wrong info and negative numbers. Why is this happening? Thanks

Re: Program trying to calculate money, won't work

I went through the code, added some thing and fixed most of the problem. However when I enter certain amounts, such as numbers ending with 3 (e.x 85.23) it gives me the wrong amount of change. Do you know why this is happening?