|
|
|
|
|
by bxc
5469 days ago
|
|
There are other ways of dealing with "fake real numbers" (which is what doubles are) One example is interval arithmetic. http://en.wikipedia.org/wiki/Interval_arithmetic None of them seem very mainstream: the predominant thinking is that floats are "the right way" to badly approximate real numbers, that works well enough except when you're working with pounds and pence, when "everyone" knows the right way is to use fixed point... That's not going to help the above associativity problem, but it fits in the theme of "LAAAA LAAAA LAAAA lets gloss over the bits of floating point that don't follow the rules" |
|