[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:


> 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

Erik de Castro Lopo

More information about the Haskell-Cafe mailing list