How to sum in jinja format

Hi everyone, i want to add two values and get the sum is there anyway to be done in custon print format?

If you want to use Arithmetic operators in print format

You can use like this:
{{ ‘{:20,.2f}’.format(doc.rate / 2,‘’) }}

also you can use it to calculate variable
{{ ‘{:20,.2f}’.format(doc.rate / doc.quantity,‘’) }}

1 Like