How to represent price?

As recomended by AWDWR (pg 85), is everyone using integer to store
decimal values?
Or is there a better way to do this?

Thanks in advance
Thushan

Hi !

The new edition recommends using decimal columns once Rails 1.2 comes out.

Cheers

Dave

Out of curiosity what does rails 1.2 have to do with the use of decimal columns? I’ve been using
decimal columns for my currency needs on my site for over a year without any issues (that I know of).

I’ve done testing to ensure my math is correct and haven’t seen any problems.

I’m afraid of what problems I’m missing by not understanding the issue at large. I’m using rails 1.1.6.

-Michael

http://javathehutt.blogspot.com