title: problems in floating point comparison
body: <pre><code>void main()
  {
      float f = 0.98;
      if(f &lt;= 0.98)
          printf("hi");
      else
          printf("hello");
      getch();
  }
  </code></pre>
  
  <p>I am getting this problem here.On using different floating point values of f i am getting different results.
  Why this is happening?</p>