Questions on points system

  • Hey - turns out IRC is out and something a little more modern has taken it's place... A little thing called Discord!

    Join our community @ https://discord.gg/JuaSzXBZrk for a pick-up game, or just to rekindle with fellow community members.

Bahamut

New Member
Jan 21, 2002
3,148
0
Cambridge, England
A slight question on this.

We beat IDC the other day who had 607 points. Now i was unsure on how many points that would give us. Its given us 60, but shouldnt it be 61? 10% of 607 is 60.7, which by normal maths would be rounded up to 61, so why did we get 60?

Maybe you have a funny way of working it out, but i thought i would check either way :p
 
yeah i think same m8, but i think its always rounded down, which is reasonable if it's consistent, which it is. Of course i aint admin so arent totally sure.
 
Yes it's always rounded down.

INT (score*0.1)

Or something like this, ask Arse/CS/Phear, they know the leaguesite code.
INT just removes the decimal part, won't add +1 if it's >0,5.
 
Psy is turning geek and is correct. Its actually the DB table definition (Integer) that rounds it down when the data is inserted. So all code thus behaves the same and is consistant for all.

Now think of all this partial points floating round the database unclaimed......


Originally posted by Psychotic
Yes it's always rounded down.

INT (score*0.1)

Or something like this, ask Arse/CS/Phear, they know the leaguesite code.
INT just removes the decimal part, won't add +1 if it's >0,5.