Fix rounding issue with floatformat filter
|Reported by:||Chris Beaven||Owned by:||Karen Tracey|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
#3004 introduced a precision argument for the
floatformat filter, but also discussed a rounding bug (it's a Python rounding problem with
The best solution to these was using the
decimal module but the solution was not used because
decimal is a Python 2.4 feature. Since then, a port of the
decimal module has been included with Django.
So we can fix the rounding bug related with the
floatformat filter now.
Change History (8)
comment:5 Changed 8 years ago by
|Owner:||changed from Pete Crosier to Karen Tracey|
|Status:||new → assigned|