title: Why comparing double and float leads to unexpected result?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1839422/strange-output-in-comparision-of-float-with-float-literal">strange output in comparision of float with float literal</a>  </p>
  </blockquote>
  
  
  
  <pre><code>float f = 1.1;
  double d = 1.1;
  if(f == d) // returns false!
  </code></pre>
  
  <p>Why is it so?</p>