Django: FloatField or DecimalFied for Currency ?

Posted by Hellnar on Stack Overflow See other posts from Stack Overflow or by Hellnar
Published on 2010-04-02T20:28:57Z Indexed on 2010/04/02 20:33 UTC
Read the original article Hit count: 253

Filed under:
|

I am curious which one would be better fitting as a currency field ? I will do simple operations such as taking difference, the percentage between old and new prices. I plan to keep two digits after the zero (ie 10.50) and majority of the time if these digits are zero, I will be hiding these numbers and display it as "10"

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models