title: Double inequality while comparying three floating point numbers
body: <p>Can somebody tell me why the following does not work?(I mean no output)</p>
  
  <pre><code>if(0.0001&lt;0.001&lt;0.01)   
      cout&lt;&lt;"hi\n"&lt;&lt;endl;
  output:    (blank)
  </code></pre>
  
  <p>While the following works:</p>
  
  <pre><code>if(0.0001&lt;0.001 &amp;&amp; 0.001&lt;0.01)  
      cout&lt;&lt;"hi\n"&lt;&lt;endl;
    output:hi
  </code></pre>