title: Why do simple math operations on floating point return unexpected (inaccurate) results in VB.Net and Python?
body: <pre><code>x = 4.2 - 0.1  
  </code></pre>
  
  <p>vb.net gives <code>4.1000000000000005</code><br>
  python gives <code>4.1000000000000005</code></p>
  
  <p>Excel gives <code>4.1</code><br>
  <a href="http://www.google.com/search?q=4.2-.1" rel="nofollow noreferrer">Google calc</a> gives <code>4.1</code>  </p>
  
  <p>What is the reason this happens?</p>