title: Floating point comparison
body: <pre><code>int main()
  {
      float a = 0.7;
      float b = 0.5;
      if (a &lt; 0.7)
      {
         if (b &lt; 0.5) printf("2 are right");
         else         printf("1 is right");
      }
      else printf("0 are right");
  }
  </code></pre>
  
  <p>I would have expected the output of this code to be <code>0 are right</code>.
  But to my dismay the output is <code>1 is right</code> why?</p>