Jinja2 round filter not rounding

You can put parens around the value that you want to round. (This works for division as well, contrary to what @sobri wrote.)

{{ (deet.value/100)|round }}

NOTE: round returns a float so if you really want the int you have to pass the value through that filter as well.

{{ (deet.value/100)|round|int }}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)