problem with money datatype based calculations in python
guenther.dietrich at spamfence.net
Sat May 2 15:43:23 CEST 2009
Krishnakant <krmane at gmail.com> wrote:
['money datatype' for database stored values]
What ist the real problem? Do you have problems converting results of
float calculations to the 'money datatype' before storing them in the
database, or do you want to avoid the precision issues which come with
the conversion od non-integer values between binary and decimal?
In the latter case use the Decimal data type from module decimal (comes
with the python distribution -- it is mentioned in the tutorial).
More information about the Python-list