title: VB.Net Double comparison after some additions
body: <p>I've faced a weird case with a double variable after adding some values to it.
  The problem occurs when adding (0.2) to a double variable more than one time -I think it only happens with (0.2)- for example: consider this code:</p>
  
  <pre><code>Dim i As Double = 2
  i = i + 0.2
  MsgBox(i) '2.2
  MsgBox(i &gt; 2.2) 'False &gt;&gt; No problem
  </code></pre>
  
  <p>But if I add (0.2) more than one time:</p>
  
  <pre><code>Dim i As Double = 2
  i = i + 0.2
  i = i + 0.2
  MsgBox(i) '2.4
  Msgbox(i &gt; 2.4) 'True &gt;&gt; !!!!
  </code></pre>
  
  <p>Also</p>
  
  <pre><code>Dim i As Double = 2
  For x As Integer = 1 to 5
      i = i + 0.2
  Next
  MsgBox(i) '3
  Msgbox(i &gt; 3) 'True &gt;&gt; !!!!
  </code></pre>
  
  <p>I tried the same code with other values, I don't get this issue:</p>
  
  <pre><code>Dim i As Double = 2
  i = i + 0.5
  i = i + 0.5
  MsgBox(i) '3
  Msgbox(i &gt; 3) 'False &gt;&gt; No problem
  </code></pre>
  
  <p>Anyone has an explanation for this??
  Thank you</p>