Answers for "how to multiply inside 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 multiply inside django template"

Python Answers by Framework

Browse Popular Code Answers by Language