double percent[] = {0.05, 0.06, 0.06, 0.06, 0.03, 0.06, 0.05, 0.02, 0.01, 0.6};
long balance = 155839888;
long aux = 0;
for (int i=0; i<percent.length; i++) {
aux += Math.round(balance * percent[i]);
}
Resultado:
aux = 155839887.
Está faltando 1. Como resolver?