#15789: floatformat filter works incorrectly when decimal precision is set low
------------------------------------+---------------------------------
Reporter: akaihola | Owner: igalarzab
Type: Bug | Status: assigned
Milestone: | Component: Template system
Version: SVN | Severity: Normal
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
------------------------------------+---------------------------------
Changes (by igalarzab):
* status: new => assigned
* owner: nobody => igalarzab
* has_patch: 0 => 1
* needs_tests: 1 => 0
Comment:
Hi,
I found some more problems. For example, with a precission of two digits,
this regression test fails:
self.assertEqual(floatformat(13.1031, -3), u'13.103')
I think this patch solves these problems.
--
Ticket URL: <http://code.djangoproject.com/ticket/15789#comment:3>
Django <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.