percentage
#1

Hello, next, I am attending a problem..

Quote:

TaxaImposto = 15%
AccountData[i][pSalario] = $5000

have to remove 15 percent of 5000, withdrew $ 750 (15%) of 5000, but I do not know about using the percentage.

First attempt:
PHP код:
new valor AccountData[i][pSalario]*TaxaImposto/);
AccountData[i][pSaldoBancario] -= valor
second attempt:
PHP код:
new Valor = (AccountData[i][pSalario]*TaxaImposto) / (Taxa);
AccountData[i][pSaldoBancario] -= Taxa
It was functional, why, what is the correct way to use the percentage using the above functions?
Reply


Messages In This Thread
percentage - by SukMathcuck - 30.08.2015, 14:41
Re: percentage - by Sew_Sumi - 30.08.2015, 15:05
Re: percentage - by Vince - 30.08.2015, 15:26
Re: percentage - by Sew_Sumi - 30.08.2015, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)