#3382: FloatField values get rounded on save()
----------------------------------------+-----------------------------------
Reporter: rfugger at gmail dot com | Owner: nobody
Status: closed | Component: Database
wrapper
Version: SVN | Resolution: wontfix
Keywords: float rounding | Stage: Design
decision needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Changes (by jacob):
* status: new => closed
* resolution: => wontfix
Comment:
[comment:3 adurdin] is right -- the {{{%s}}} is actually a dbapi
placeholder; the database driver itself is figuring out how to write out
the float, so Django has no control over it. Floats will always be
imprecise in this way, so if you need exact control like this, use a
DecimalField instead.
--
Ticket URL: <http://code.djangoproject.com/ticket/3382#comment:5>
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
-~----------~----~----~----~------~----~------~--~---