<p>Be careful when comparing <code>Decimal</code> and <code>float</code>: <code>Decimal('3.0') == 3.0</code> but <code>Decimal('3.2') != 3.2</code>.</p>
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.