Author Topic: Star rounding is not right.  (Read 807 times)

NRyan115

  • Moderator
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Star rounding is not right.
« on: March 30, 2011, 11:24:31 AM »
Right now, it seems that simple review rounds up but it should be the users option to choose to round up or down, or average.

A rating of 3.0 results in 3 stars.
A rating of 3.1 results in 3.5 stars.
A rating of 3.6 results in 4 stars.

This is especially horrible if you are using a rating system out of 10.

Then, A rating of 6.0 results in 3 stars (good)
A rating of 7.0 results in 3.5 stars (good)
A rating of 6.1 results in 3.5 stars (bad)

Each star represents the maximum value the score could be instead of the average or lowest.
I propose that scores should be rounded to the nearest correct value rather than always up.

A rating of 3.4, 3.5, 3.6 should all result in 3 stars (When scored out of 5)
While
A rating of 6.6, 7.0, 7.4 should all result in 3.5 stars (When scored out of 10)

row1

  • SR Sole Developer
  • Hero Member
  • *****
  • Posts: 1244
    • View Profile
    • Sockware
Re: Star rounding is not right.
« Reply #1 on: April 02, 2011, 08:39:46 PM »
I understand what you are saying, but if you are using star ratings then why even give something a rating of 3.1? I have only ever seen systems in the wild with rating in whole/half stars.

This is probably a moot point as we have talked about adding some flexibility with custom CSS to allow people to have a star for any rating.
If you find Simple Review useful please submit a Review (http://extensions.joomla.org/extensions/communities-&-groupware/ratings-&-reviews/4725/details), your positive reviews will help keep me going!
Please also make suggestions and possible improvements in the forum!

NRyan115

  • Moderator
  • Sr. Member
  • *****
  • Posts: 445
    • View Profile
Re: Star rounding is not right.
« Reply #2 on: April 02, 2011, 08:53:22 PM »
Yes and I look forward to finishing that discussion but for the purposes of this discussion:

Having 10 ratings of 0, 0.5, 1, 1.5 etc etc doesnt make sense. You either should have 2 digits of precision or 1.

The other reason would be for top reviews, or sorting by rating. If you have 4 reviews with 5 stars which one is first? If 1 is 5.0 and the rest are 4.9, 4.8, 4.7 then you can list them in order of best review even though the graphic appears the same.

Also, the latest review module uses numbers so the decimal places show.