[LRUG] Prices and Precision

Ed Davey ed at veryreal.co.uk
Sun Nov 18 04:19:18 PST 2007

> What's the best way to store prices in a Ruby (Rails) app?  What's the
> best SQL type for mySQL?

I've been storing prices in pence as integers and using Brad Folkens  
Model Formatter:


to display and enter prices in £2.99 format.

This is working well for me so far...


More information about the Chat mailing list