Maybe is a dumb question but I'm figthing with a rating calculation. I've a global rating which is between 0 and 1, the number of ratings, the user rating.
How can I calculate the new rating with :
Any idea ?
Thank you.
Careful with your choice of data types or you will lose a little accuracy each time you do this calculation.
Pseudocode:
newRating = ((oldRating * previousNumberOfRatings) + userRating) / (previousNumberOfRatings + 1)