News for hackers. Stuff that matters.
Re:How to Make Easy & Flexible Star Ratings by Aloisius on Friday October 14, 2011 @06:13PM (#3113164)
Can't you just internally multiple everything by 2, average the whole thing, round, then divide by 2 to get half point ratings?

  stars = round(star_sum * 2 / num_raters)/2

There are no comments on this comment yet.