@djlink the first time as a junior dev you accidentally do a f == f comparison
@djlink Funny, because the whole point of denormals (which are otherwise a huge pain) is to guarantee that the difference of two floating point numbers is zero iff they are equal.
@jbqueru @djlink It's obviously OK to compare floats if you know what you're doing. There is a certain amount of FUD around floating point numbers.
https://stackoverflow.com/a/7366183/14768587
@theohonohan @djlink Yup. Most of my CS classes in the first 2 years in college were specifically about how to deal with floats and more specifically how to order operations to maximize precision (I was a math major, and this part of CS was on the side of applied math). I admit I don't remember all of those techniques.
Amusingly, I remember the Dan-0411 bug.
@josh @thejpster @djlink Why does the spec require that they not be equal, anyway? I never understood that and haven't bothered to read it.