On a certain screen I get a value and add 10% over that value.
100,00 + 10% = 110,00
I save the final value (110.00). I'm having a hard time getting the final value (110.00) and taking the 10%. 110.00 - 10% = 99.00 and in real I wanted to return to 100.00.
I found the following formula in java, however it is going wrong in some cases, like 220.00
Double ofertaNormal = proposta.getOferta() / (1+(10.0/100));
ofertaNormal = (double) Math.round(ofertaNormal);