ruby-on-rails: string, decimal or float for price field?

Posted by fayer on Stack Overflow See other posts from Stack Overflow or by fayer
Published on 2010-06-17T17:21:34Z Indexed on 2010/06/17 17:23 UTC
Read the original article Hit count: 188

Filed under:

i've got a price field/column and i wonder should the rails datatype be string, decimal or float?

eg. 15.50 USD.

thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails