title: Why I'm getting wrong int-float comparison result?
body: <p>Why I'm getting output as <code>Yes</code> though 9.58 is not less than 9.58 or Is there anything wrong with this <code>If</code> condition?</p>
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
     float x = 9.58;
  
     if (x &lt; 9.58)
     {
        std::cout &lt;&lt; &quot;Yes&quot; &lt;&lt; '\n';
     }
  
     return (0);
  }
  </code></pre>