|
|
|
|
|
by crazygringo
1896 days ago
|
|
I guess I just don't see why it's worse than FP. I mean, you said: > Contrast this with just leaving it as a float instead of an interval, where you would've gotten the correct answer. But if I type into my console: var a = 0.1; var b = a + 0.2; b -= 0.2; b == a;
I get false. That's not correct. Whereas if "==" checked for overlap between intervals, it would be true. Which would be correct.Heck, to use your own division example: (0.1 + 0.2 - 0.2) / 0.1 ==> 1.0000000000000002
That's not 1.0. So the FP you claim is so correct... just isn't at all. Again, while interval arithmetic would correctly detect overlap of intervals between that and 1.0.Anyways, thanks for trying to explain. |
|