title: Why does this loop never end?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1398753/problem-in-comparing-double-values-in-c">problem in comparing double values in C#</a>  </p>
  </blockquote>
  
  
  
  <p>I've read it elsewhere, but really forget the answer so I ask here again. This loop seems never end regardless you code it in any language (I test it in C#, C++, Java...):</p>
  
  <pre><code>double d = 2.0;
  while(d != 0.0){
     d = d - 0.2;
  }
  </code></pre>