News for hackers. Stuff that matters.
Re:How to Make Easy & Flexible Star Ratings by teej on Friday October 14, 2011 @06:09PM (#3113152)
Please don't do that. Here's a one liner:

    round( 2.0 * star_sum / num_raters) / 2.0

There are no comments on this comment yet.