- Jul 26, 2002
- 11,757
- 0
- 71
*New Question*
Ok, so if I want to calculate the amount of change in dollars/quarters/nickles/pennies/dimes you would get back if you input a certain amount of pennies what would the best way to do it be?
The problem Im having is If I put in say 150 pennies, I have it calculate dollars first, but I need it to give me 1 dollar instead of 1.5 for my value, and then save the rest of it for my next calculation. I tried assigning integers and decimal values to these things, but that still gives me decimal places. What would I use to get rid of decimals?!?
Ok, so if I want to calculate the amount of change in dollars/quarters/nickles/pennies/dimes you would get back if you input a certain amount of pennies what would the best way to do it be?
The problem Im having is If I put in say 150 pennies, I have it calculate dollars first, but I need it to give me 1 dollar instead of 1.5 for my value, and then save the rest of it for my next calculation. I tried assigning integers and decimal values to these things, but that still gives me decimal places. What would I use to get rid of decimals?!?
