Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Big problem with raitng with more than 500 votes

Quote Reply
Big problem with raitng with more than 500 votes
If the link have more than 500 votes every new vote do not change rating because the column Rating is float with only 2 decimal, to work fine you must change the column properties of Ratings with minimum 4 decimal to work with 5000 votes, 5 decimal with 50000 etc.
Quote Reply
Re: [Troja] Big problem with raitng with more than 500 votes In reply to
Hmm are you sure about this??
Quote Reply
Re: [xpert] Big problem with raitng with more than 500 votes In reply to
Yes I am shure

Let's make some example:

The link have 1000 votes and ratint 7.50 if you rate this link with 10

the result is: (1000*7.5)+10 = 7510

votes = 1000 +1

then rating = 7510/ 1001 = 7.502497...

But in tables rating is saved just 7.50

Before new vote rating is 7.50

after new vote rating is 7.50
Quote Reply
Re: [Troja] Big problem with raitng with more than 500 votes In reply to
Check out my post:
http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=203527;search_string=search_string;guest=1537685#203527

Mark

Cool
Quote Reply
Re: [Troja] Big problem with raitng with more than 500 votes In reply to
Hi,

Your right, we'll look at updating this and moving the formatting into the code.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Big problem with raitng with more than 500 votes In reply to
I am glad to help you ;)
10x to all your team you are N=1