<p>On Mar 20, 2012 1:50 AM, "bearophile" <<a href="mailto:bearophileHUGS@lycos.com">bearophileHUGS@lycos.com</a>> wrote:<br>
><br>
> James Miller:<br>
><br>
> > writeln(v1 == 1); //false<br>
> > writeln(v1 == 1.0); //false<br>
> > writeln(v1 == 1.0f); //false<br>
> > writeln(v1+1 == 2.0f); //true<br>
><br>
> Maybe I'd like to deprecate and then statically forbid the use of == among floating point values, and replace it with a library-defined function.<br>
><br>
> Bye,<br>
> bearophile</p>
<p>I wouldn't mind if it was just type weirdness, but its not. It appears that 1 does not equal 1.<br>
</p>