Handling Currency in Rails

I’m working on a small application in which currency – specifically USD – will be stored in a MySQL database.

Because Rails supports a variety of number formats, it’s not completely obvious which is the best to use when storing monetary values.

Using a decimal with a certain level of precision seems to be the most scalable option.

Continue reading “Handling Currency in Rails”