This odd behavior is caused by an implicit cast of to float when it is compared with; a cast which loses precision, making the values being compared the same.
This odd behavior is caused by an implicit conversion of to float when it is compared with. The conversion loses precision, making the values being compared the same.