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.
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
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
Sep 26, 2002, 10:58 AM
Administrator (9387 posts)
Sep 26, 2002, 10:58 AM
Post #5 of 6
Views: 2256
Hi,
Your right, we'll look at updating this and moving the formatting into the code.
Cheers,
Alex
--
Gossamer Threads Inc.
Your right, we'll look at updating this and moving the formatting into the code.
Cheers,
Alex
--
Gossamer Threads Inc.