More Floating Point Fun

by havoc

I’m not sure interested is the right word in the context of
that 94-page document. 😉 For years here is my mental model of floating point:

  1. To test numeric equality don’t use the == operator
  2. If I ever write any numeric code, learn a lot more

So recently I changed Havoc’s Floating Point Fact 1 to:

  1. Never use the == operator with floating point, it doesn’t even work


(This post was originally found at

My Twitter account is @havocp.
Interested in becoming a better software developer? Sign up for my email list and I'll let you know when I write something new.