title: Convert 12,34 into 12.34 in Django template for css purposes
body: <p>I have to deal with django, so here goes my question. I have a template where I want to calculate values and then use them in css. It looks like:</p>
  <pre><code>padding-top: {{ VAL1|divide:VAL2|multiply:VAL3 }}px
  </code></pre>
  <p>It calculates the value I need albeit in some strange fashion via filters, I am ok with that since I am already dealing with django :( The problem is that the result of calculation has comma inside like <code>12,34</code> whereas <code>12.34</code> is needed for css to work properly - <code>padding-top: 12,34px</code> isn't valid css due to the comma (I use google chrome). I tried to use <code>floatformat</code> filter - no success. It looks like a simple thing but I cannot wrap my head around it...</p>