C++ comparison of integers with float : <p>I have the following code.that demonstrates the problem I am having. How come the comparison is not evaluating to true? Is this a limitation of integer and floating point comparisons?</p>

<pre><code>#include &lt;iostream&gt;

int main(){

    double m = -0.625;
    if((-1)&lt;=m&lt;=0){
        std::cout &lt;&lt; "Enter here" &lt;&lt;std::endl;
    }
    return 0;
}
</code></pre>
