Double precision problems on .NET

I actually sort of wish they hadn’t implemented the == operator for floats and doubles. It’s almost always the wrong thing to do to ever ask if a double or a float is equal to any other value.

Leave a Comment