Remove the decimal part of a floating-point number in django?

django, python, templates

Solution

Seen here:

You can use the floatformat filter with a negative argument!

The answer would be:

{{ value.item_total|floatformat }}

Problem

I have a variable called `{{value.item_total }}` which is `499.00`, but I want to remove the decimal points for this value in my templates file to make it `499`. How could I do this?

Original source

Related problems