[Haskell-cafe] Little errors in number calculations

Ross Paterson ross at soi.city.ac.uk
Sat Nov 14 16:11:22 EST 2009

On Sat, Nov 14, 2009 at 09:00:42PM +0000, Abby Henríquez Tejera wrote:
> I understand that error may (and will) happen in floating point, 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?

The inaccuracy of floating point is the issue; it's just that Hugs
sometimes prints things with less precision than required by the Haskell
Report, and this can hide the errors.

More information about the Haskell-Cafe mailing list