19.12.2009, 18:28
percentages are floats anyway. And if you're trying to get the percentage given two numbers, then do
that would give 70%
pawn Код:
new Current = 35
new Max = 50
new Float:percentage = (Current/Max)*100
printf("%f%%",percentage);