
14 Nov
2008
14 Nov
'08
10:34 a.m.
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