edgarjs / ajaxful-rating

Provides a simple way to add rating functionality to your application.
http://rdoc.info/projects/edgarjs/ajaxful-rating
418 stars 127 forks source link

How to control the precision and scale? #84

Open yanivpr opened 11 years ago

yanivpr commented 11 years ago

I'm using 5 stars and cache cloumn. I'd like the tooltip to show something like 4.23, but is shows the entire number, e.g. 4.23877363432

The average is a decimal with precision 3 and scale 2 Rails 3.2.8 sqlite and postgre (on heroku)

How do I control this? Isn't the 'to_nearest' supposed to control that?

Thanks