djangosnippets.org: Latest snippets tagged with 'quantize'http://djangosnippets.org/tags/quantize/2009-04-27T20:46:26.783527-05:00Quantize decimal template filter
2009-04-27T20:46:26.783527-05:00bl4th3rsk1t3http://djangosnippets.org/snippets/1468/<p>Takes a float number (23.456) and uses the decimal.quantize to round it to a fixed exponent. This allows you to specify the exponent precision, along with the rounding method. And is perfect for monetary formatting taking into account precision.</p>
Freely redistributable