I have an array of type double storing 3 values I want to increment the value by 3 cents but I get a bunch of decimal places I can't seem to figure out what the problem is
double [] cupsPrice = {0.93, 1.65, 2.77};
for(int i=0; i<7; i++){
for(int l=0; l<3; l++){
cupsPrice[l] += 0.03;
}
}////expecting 0.96 in second run but is returning 0.0960000000000001