People have also very often been freaked out by<p><pre><code>  &gt;&gt;&gt; 1&#x2F;2
  0
  &gt;&gt;&gt; 2&#x2F;3
  0
</code></pre>
... and this has changed from Python 2 to Python 3. But the floating-point vs. rational&#x2F;decimal hasn&#x27;t.<p>You might get what you want from<p><pre><code>  &gt;&gt;&gt; import decimal
  &gt;&gt;&gt; decimal.Decimal(&#x27;0.1&#x27;) + decimal.Decimal(&#x27;0.2&#x27;) == decimal.Decimal(&#x27;0.3&#x27;)
  True
</code></pre>
Still, that seems like a bunch of extra work compared to the more obvious way to type in numbers!