There was an established canonical that deals with floating point arithmetic with the catchy title "Is floating point math broken?".
The "was" used because now the title is "Why does floating-point arithmetic not give exact results when adding decimal fractions?"
See the revisions of the post. #21 changes to the new title #22 rolls back to the old one, #23 rolls back the rollback. It is a mini edit war.
The reason given for the change is "less clickbaity title" and I do get the sentiment. The title, while catchy is not very descriptive about what exactly is broken. As a summary - some mathematical operation on fractions will result in surprising results. The most well known is this innocent looking mathematical expression.
console.log(0.1 + 0.2); //0.30000000000000004
It is so well known there is a website dedicated to this problem with floating point arithmetic: https://0.30000000000000004.com/
At any rate, the problem with the new title is that while it narrows down the "brokenness" it narrows it down too much. The problem is not only with addition. The very reason I noticed the new title is because I opened a question which asked why the following expression is false: (18392.19 * 10 * 10) === (18392.19 * 100)
which is down to the exact same issue with floating point arithmetic. Yet it is not about addition.
console.log(18392.19 * 10 * 10); // 1839219
console.log(18392.19 * 100); // 1839218.9999999998
It was surprising to me that it was linked to a duplicate about addition. As I knew it by the old name.
I do not have a particular preference for the old title. However, this is not even the first time the title was altered - in revision #17 it was changed to "Why do inaccuracies occur in floating point math operations?" and I suspect that every once in a while somebody would come up to try and revise it to something they believe is useful. This is an early intervention: I would prefer if there was a wider discussion and some consensus what the title should be.
The edit was rolled back again while writing this. It is back to "Is floating point math broken?". Henry Ecker changed it saying:
I rolled it back. The proposed title was overly restrictive as it does indeed apply to all math operations. I'm not opposed to a title change to be "less clickbaity" but not that specific one.
0.1 + 0.2 != 0.3
, I think it's very much correct and accurate to describe that behavior as "wrong" from a conventional perspective. The reason that expression is false amounts to a computer quirk, not because it's "right" or "correct" in a meaningful way.