[Haskell-cafe] Bug with [Double]

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed May 19 05:35:15 EDT 2010


Dmitry Olshansky wrote:

> It seems that I saw something like this in Cafe recevtly. But I am not sure...
> In GHC 6.12.1 (Platform 2010 on Windows Vista) I have

<snip>


> Any comments?

The problem you point out is not a problem with Haskell, but a problem
with the whole concept of floating point arithmetic as implemented on
all modern CPUs. See:

    http://docs.sun.com/source/806-3568/ncg_goldberg.html

You would have got similar problems with just about any language running
on the same hardware.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-Cafe mailing list