3 ms·
It's very rare that you sum numbers separated by ~100 orders of (decimal) magnitude. In practice the error will usually be very small. Just big enough to make x
by ajuc 5y ago
It's very rare that you sum numbers separated by ~100 orders of (decimal) magnitude. In practice the error will usually be very small. Just big enough to make x == y and x != y useless for floats, but not big enough to cause problems anywhere else.
- aw1621107 5y agoYeah, that's a fair point. I just thought that this was an interesting example of what is possible more than what one would need to worry about in practice.