Bug in GHC6.10.1?

José Pedro Correia zepedro.correia at gmail.com
Fri Nov 14 09:32:52 EST 2008


Hello

I was wondering if there is a bug in GHC 6.10.1 regarding number precision.

As an example, in GHCi with:
> 3.0 * 0.2

I get:
0.6000000000000001

Although:
> 2.0 * 0.2
0.4

I have GHC 6.10.1 on Mac OS X 10.5.

Is this a known bug or should I report it?

Best regards
Zé Pedro


More information about the Glasgow-haskell-users mailing list