Answers for "how to multiplyinside 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

Python Answers by Framework

Browse Popular Code Answers by Language