On Mar 20, 2012 1:50 AM, "bearophile" <bearophileh...@lycos.com> wrote: > > James Miller: > > > writeln(v1 == 1); //false > > writeln(v1 == 1.0); //false > > writeln(v1 == 1.0f); //false > > writeln(v1+1 == 2.0f); //true > > 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. > > Bye, > bearophile
I wouldn't mind if it was just type weirdness, but its not. It appears that 1 does not equal 1.