Answers for "how to do multiply in django template"

1

how to multiply in django template

You can use widthratio builtin filter for multiplication and division.

To compute A*B: {% widthratio A 1 B %}

To compute A/B: {% widthratio A B 1 %}
Posted by: Guest on March-05-2021

Code answers related to "how to do multiply in django template"

Python Answers by Framework

Browse Popular Code Answers by Language