[Django]-Django and floatformat tag

47👍

✅

Doesn’t using a parameter of -2, as described in the docs you link to, do what you want?

{{ 1.00|floatformat:-2 }}

See Django Docs: https://docs.djangoproject.com/en/2.0/ref/templates/builtins/#floatformat

Leave a comment