Please support Negative Parameters for floatformat #53

gebi opened this Issue Dec 17, 2012 · 2 comments


None yet

3 participants

gebi commented Dec 17, 2012

Seems django added support for negative parameters in floatformat which simply does NOT print zeros after comma.

e.g from
value Template Output
34.23234 {{ value|floatformat:"-3" }} 34.232
34.00000 {{ value|floatformat:"-3" }} 34
34.26000 {{ value|floatformat:"-3" }} 34.260

Using floatformat with no argument is equivalent to using floatformat with an argument of -1.


Thanks for the info. I support this feature but don't have time to code it myself at the moment.

@kaos kaos was assigned Nov 29, 2013
@kaos kaos added a commit that referenced this issue Nov 29, 2013
@kaos kaos Improve floatformat.
Fixes #41, #53.
@kaos kaos closed this Nov 29, 2013
gebi commented Jan 19, 2014

@kaos THX for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment