hi everybody,

I'm testing a formula I've just created it's very simple, but I would like to knowe if it will return the correct results:

if(rank <= ((numberofPlayers/100)*10),((numberofPlayers/100)*10) - rank, 0)

basically i want to award the top 10% of players with points, so if 100 players, only 10 players with points, if 1200 players, only 120 players...

is it correct?