when a number doesn’t equal itself

I spent a while on Wednesday getting screwed by floating point errors in R. Since it took me a bit of sifting through search results on “r number doesn’t equal itself” to find the problem, this post is basically a quick shot at raising the visibility of the solution.