The Twig filter `number_format` was added in Twig v1.5. Alas, we are stuck with v1.4. `{{ 3.00 + 0.40 }}` returns 3.4 Is there a way to handle this and not lose the trailing zero?