-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Milestone
Description
I don't know if I would call this a feature or a bug or really anything more than just a thing, but I've noticed that intcomma decides to round off decimals of zero, but not other numbers. For instance:
journalize.intcomma(1000.0)
'1,000'This is the case even when the user submits a value with an explicitly fixed decimal place.
journalize.intcomma((1000.0).toFixed(1))
'1,000'I'm certain there is probably some good reason for this I'm unaware of, but I wanted to file this ticket since the second example above was not the behavior I expected as a user.
For what it's worth, it is also not the behavior of the old gods of Django.
>>> from django.contrib.humanize.templatetags.humanize import intcomma
>>> intcomma(1000.0)
'1000.0'Metadata
Metadata
Assignees
Labels
No labels