title: less than (<) comparison of float with if statement in c
body: <p>case 1</p>
  
  <pre><code>float a = 0.6;
  
  if (a &lt; 0.6)
  {
      printf("c");
  }
  else
  {
      printf("c#");
  }
  </code></pre>
  
  <p>output c#</p>
  
  <p>case 2</p>
  
  <pre><code>float a = 0.9;
  
  if (a &lt; 0.9)
  {
      printf("c");
  }
  else
  {
      printf("c#");
  }
  </code></pre>
  
  <p>output c</p>
  
  <p>now question is why ?</p>