Bug in GHC6.10.1?

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Nov 14 10:34:46 EST 2008


On Fri, 2008-11-14 at 14:43 +0000, Mitchell, Neil wrote:
> Hi,
> 
> Floating point numbers are just inaccurate, so the results you see
> aren't too surprisingly.
> 
> Interestingly enough, using Hugs, I get the right answer in both cases
> - so its possible it's a bug, but unlikely.

Hugs probably just rounds more.

hugs:   0.6
irb:    0.6
ghci:	0.6000000000000001
python: 0.60000000000000009
ocaml:  0.600000000000000089


Duncan



More information about the Glasgow-haskell-users mailing list