'Jinja subtraction and variable declaring

In jinja, how to subtract.

Eg: I have some number inside {{ review.rating }} , and I want to subtract the number with 5. Is it like {{ 5 - review.rating }} or how?

And is it possible to put the answer in another variable in jinja itself?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source