Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teej
on Oct 14, 2011
|
parent
|
context
|
favorite
| on:
How to Make Easy & Flexible Star Ratings
Please don't do that. Here's a one liner:
round( 2.0 * star_sum / num_raters) / 2.0
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: