#3382: FloatField values get rounded on save()
----------------------------------------+-----------------------------------
Reporter: rfugger at gmail dot com | Owner: adrian
Status: new | Component: Database
wrapper
Version: SVN | Resolution:
Keywords: float rounding | Stage: Design
decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Comment (by [EMAIL PROTECTED]):
The "%s" used in SQL queries constructed by Python AFAIK are not
placeholders for Python %-substitution, but rather placeholders for the DB
API. Can you demonstrate that the rounding you mention is actually
occurring, and is not due to the database backend?
I have used full-precision floats in Django with MySQL without rounding
errors when writing the DecimalField tests (#2365); however I found that
SQLite would round some values in the last digit.
--
Ticket URL: <http://code.djangoproject.com/ticket/3382#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---