Holy equality comparisons between floating-point numbers and integer literals, Batman!

(Seriously, while this does work in this case, it's probably a bad idea to do this kind of thing in example code that will be copied ad nauseam.)