We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When working with financial application, it is advised to save everything in Integers. Working with Floats can lead to rounding errors.
Save everything as price_in_cents, display it all as price currency.
price_in_cents
price
Use a "virtual attribute" (i.e def price=', def price`), see http://railscasts.com/episodes/16-virtual-attributes-revised
def price=',
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When working with financial application, it is advised to save everything in Integers. Working with Floats can lead to rounding errors.
Save everything as
price_in_cents
, display it all asprice
currency.Use a "virtual attribute" (i.e
def price=',
def price`), see http://railscasts.com/episodes/16-virtual-attributes-revisedThe text was updated successfully, but these errors were encountered: