.98 cents instead of .99



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?

.