Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4616

Ruby and money, in a rails app, how to store money values in the db?

$
0
0

I want to make sure I don't have rounding issues when it comes to storing prices for products in a rails app.

What mysql datatype should I use, and what does it map to in rails?

I want decimal with 10 places for precision.


Viewing all articles
Browse latest Browse all 4616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>