Hello,

I noticed that when a FloatField gets pulled back out of the database
(mysql in my case) it has an object type of "Decimal". If I try to add
such an object to a float, python complains that it can't combine these
two types.

What is the convention for handling this situation?
Should I convert all FloatFileds with float() as soon as I pull them
from the DB or Should I convert all float()s to Decimal()s? If the
later is true, where can I find the function that converts to the
Decimal type?

Thanks,
-Jake


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to