PHP rating system
<p>I have a table (review) which stores the values (1-5) for ratings. I will use the sum of these ratings for the overall score.</p>

<p>I have 5 stars on the page which will show on or off depending on the overall value.</p>

<p>I have the overall score by counting the total value of all the ratings divided by the number of reviews in the table. This give a value below 5 every time...great.</p>

<p>However I now have a problem where the value could either be 1.5 or 1.75 for instance. If the value is 1.5 I will show 1 and a half stars on and 3 and a half stars off. How should I determine if the value is 1.75 to show only the 1.5 value star.</p>

<p>Hope that makes sense.</p>
