30.08.2015, 14:41
Hello, next, I am attending a problem..
have to remove 15 percent of 5000, withdrew $ 750 (15%) of 5000, but I do not know about using the percentage.
First attempt:
second attempt:
It was functional, why, what is the correct way to use the percentage using the above functions?
Quote:
TaxaImposto = 15% AccountData[i][pSalario] = $5000 |
First attempt:
PHP код:
new valor = AccountData[i][pSalario]*TaxaImposto/);
AccountData[i][pSaldoBancario] -= valor;
PHP код:
new Valor = (AccountData[i][pSalario]*TaxaImposto) / (Taxa);
AccountData[i][pSaldoBancario] -= Taxa;