0
On a certain screen I take a value and add 10% on top of that value.
100,00 + 10% = 110,00
I save the final amount (110.00). I’m having difficulty in picking up the final amount (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, but it is going wrong in some cases, as 220,00
Double ofertaNormal = proposta.getOferta() / (1+(10.0/100));
ofertaNormal = (double) Math.round(ofertaNormal);
my... 10% of 110 is 11 and not 10...
– Gabriel Gartz