[Haskell-cafe] Little errors in number calculations

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Nov 14 16:07:00 EST 2009


Hello Abby,

Sunday, November 15, 2009, 12:00:42 AM, you 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?

compare:
0.355029999999999
0.3550299999999993

hugs just prints one less digit

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list