[Pedido] Porcentagem
#3

Valor Principal = 1000
Porcentagem total = 100
Porcentagem que o sistema vai voltar = 5

r = 1000/100
p = r*5

Exemplo de pawn:

Код:
new valor, final;

valor = 1000/100;
final = valor*5;
Ali no 5 vocк por a porcentagem que vocк quer que volte.
Reply


Messages In This Thread
Porcentagem - by minimessi10 - 16.10.2015, 18:56
Re: Porcentagem - by Kamper - 16.10.2015, 19:05
Re: Porcentagem - by willttoonn - 16.10.2015, 19:07
Re: Porcentagem - by minimessi10 - 16.10.2015, 19:07
Re: Porcentagem - by willttoonn - 16.10.2015, 19:10
Re: Porcentagem - by zPain - 16.10.2015, 20:56

Forum Jump:


Users browsing this thread: 1 Guest(s)