djangosnippets.org: Latest snippets posted by durkahttps://djangosnippets.org/users/durka/2008-10-24T22:56:18.989272-05:00durkaRPN template math
2008-10-24T22:56:18.989272-05:00durkahttps://djangosnippets.org/snippets/1156/<p>Django's templates don't provide much in the way of arithmetic: there is an "add" filter and that is about it. Even if sub, mult and div filters are implemented, it is difficult to chain filters while preserving some complicated expression, such as ((x+3)4-(2-y)/12.75). However, this expression can be converted into …</p>
Freely redistributable