Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

How to control the precision and scale? #84

Open
yanivpr opened this issue Oct 23, 2012 · 0 comments
Open

How to control the precision and scale? #84

yanivpr opened this issue Oct 23, 2012 · 0 comments

Comments

@yanivpr
Copy link

yanivpr commented Oct 23, 2012

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant