sorry .09 instead of .08
- From: joshdalrymple2000@xxxxxxxxx
- Date: 29 Jan 2006 14:29:23 -0800
double totalCost = 3.91, amountPaid = 4.00;
int totalChange;
totalChange = (int)((amountPaid - totalCost) * 100);
System.out.println(totalChange);
it keeps saying the answer is 8... can any one help?
.
- Follow-Ups:
- Re: sorry .09 instead of .08
- From: Ernie Wright
- Re: sorry .09 instead of .08
- From: Fabien Bergeret
- Re: sorry .09 instead of .08
- From: James Westby
- Re: sorry .09 instead of .08
- Prev by Date: .98 cents instead of .99
- Next by Date: Re: sorry .09 instead of .08
- Previous by thread: .98 cents instead of .99
- Next by thread: Re: sorry .09 instead of .08
- Index(es):