Decimal zero padding
<p>I need to output decimal numbers in a price format,</p>

<p>i.e.</p>

<p>10   = 10.00
11.1 = 11.10</p>

<p>How can I achieve this using decimal.Decimal class ?</p>

<pre><code>pad_zero(Decimal('10.0'))
&gt;&gt;&gt;Decimal('10.00')
</code></pre>

<p>*<em>EDIT:</em>*format method does not fit my need because I need to pass it on as decimal, I understand though, that i can convert it back to afterwards, but such to-and-fro seems somewhat unpythonic.</p>
