
27 Oct
2008
27 Oct
'08
11:41 a.m.
Ketil Malde wrote:
Of course, Haskell should discard the rather tasteless IEEE754 crud, and do its calculations on infinite streams of digits. Then, rounding upwards after 'take'ing a sufficient amount of decimals will be the right thing to do.
Except arbitrary-precision real arithmetic is not as trivial as you make it sound, and using an infinite stream of digits is not sufficient by itself. See also: http://www.haskell.org/haskellwiki/Exact_real_arithmetic Martijn.