title: why if(a==2.3) evaluates false when float a=2.3
body: <pre><code>#include&lt;stdio.h&gt;
  
  void main()
  {
      float a = 2.3;
      if(a == 2.3) {
          pritnf("hello");
      }
      else {
          printf("hi");
      }
  }
  </code></pre>
  
  <p>It prints "hi" in output, or we can say that if condition is getting false value.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  void main()
  {
      float a = 2.5;
      if(a == 2.5)
          printf("Hello");
      else
          printf("Hi");
  }
  </code></pre>
  
  <p>It prints hello.</p>