<i>Here is the Decimal type which does not have this float problem.</i><p>Are you sure?<p><pre><code>  &gt;&gt;&gt; Decimal(0.1)
  Decimal(&#x27;0.1000000000000000055511151231257827021181583404541015625&#x27;)</code></pre>