djangosnippets.org: Latest snippets tagged with 'usa'https://djangosnippets.org/tags/usa/2008-10-07T14:13:25.702589-05:00Convert numbers in USA notation to brazilian notation
2008-10-07T14:13:25.702589-05:00eOlivahttps://djangosnippets.org/snippets/1115/<p><strong>This is the converter, just put it as a filter and call it with a float number.</strong></p>
<ul>
<li>So, if you have a template variable <strong>{{ my_number }}</strong> that is "3096.44".</li>
<li>It will convert to "3.096,44" using the filter <strong>{{ my_number|numBR }}</strong>.</li>
</ul>
Freely redistributable