View Single Post
Old 19/12/2009, 06:28 PM   #3
Joe Staff
Join Date: Aug 2007
Posts: 2,596
Reputation: 379
Default Re: Per cent calculation

percentages are floats anyway. And if you're trying to get the percentage given two numbers, then do

pawn Code:
new Current = 35
new Max = 50
new Float:percentage = (Current/Max)*100
that would give 70%
Joe Staff is offline