[Haskell-cafe] Little errors in number calculations
Erik de Castro Lopo
mle+hs at mega-nerd.com
Sat Nov 14 16:21:24 EST 2009
Abby Henríquez Tejera wrote:
> I understand that error may (and will) happen in floating point,
Yes, explained here:
http://docs.sun.com/source/806-3568/ncg_goldberg.html
> but
> it surprises me that they do so easily, and, above all, the difference
> between GHC and Hugs. Does someone know why does this difference
> occur?
It looks like the two implementations just print floating point
numbers with differing amounts of precision (or rather number of
digits).
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Haskell-Cafe
mailing list