Strange behavior when comparing float with a constant
<p>I was struck by this strange behavior:</p>

<pre><code>float pi = 3.14;

if(pi == 3.14)
    cout &lt;&lt; "OK";
else
    cout &lt;&lt; "How is it possible?";
</code></pre>

<p>Could anyone explain this?</p>
