How to convert Decimal() to a number in Python? : <p>I have a JSON output that is <code>Decimal('142.68500203')</code>.</p>

<p>I can use str() to get a string which is <code>"142.68500203"</code>. But I want to get a number output which is <code>142.68500203</code>.</p>

<p>How to make the conversion in Python?</p>
