Please support Negative Parameters for floatformat #53

Closed
gebi opened this Issue Dec 17, 2012 · 2 comments

Projects

None yet

3 participants

@gebi
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 https://docs.djangoproject.com/en/dev/ref/templates/builtins/#floatformat
"
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.
"

@evanmiller
Collaborator

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.
b57284a
@kaos kaos closed this Nov 29, 2013
@gebi
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