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

How to control the precision and scale? #84

@yanivpr

Description

@yanivpr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions