3 ms·
> real mystery is why no one's designed a language that makes floating-point comparisons default to relative tolerance of 10^-10 or so. Bc the very next step i
by diydsp 3y ago
> real mystery is why no one's designed a language that makes floating-point comparisons default to relative tolerance of 10^-10 or so.
Bc the very next step is a footgun: "the function said these two values are equal but they're not."
- taeric 3y agoI think it is fair to wonder why no language made it so that you can only compare floats with a defined tolerance?