40
It's OK to compare floating-points for equality
(lisyarus.github.io)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Headline: says something. (That is obviously not true and just clickbaiting)
Instant disclaimer: the headline is not good, it should be instead "don't do this other thing".
Later in the article: how do we avoid doing the thing I told you not to do? By doing what I told you not to do.
The dude may be correct (idk, haven't bothered reading the rest of the article), but he doesn't know how to write/communicate. I don't believe he's respecting my time. Just tell in the title what you actually want to talk about.
I got a LITTLE bit further than you.
Boils down to "make the 'close enough' number have some real meaning in your domain instead of just picking an arbitrarily small one"
... at least to my read. Again, like you, didn't finish.