#5389: Floating point error
------------------------+---------------------------------------------------
Reporter: Gabi | Owner:
Type: bug | Status: new
Priority: normal | Component: GHCi
Version: 6.12.1 | Keywords: floating point errors
Testcase: 9.6+4.8 | Blockedby:
Os: Linux | Blocking:
Architecture: x86 | Failure: None/Unknown
------------------------+---------------------------------------------------
I'm running GHC version 6.12.1 on Debian Squeeze. While using the
interpreter, I started getting unexpected results in some floating point
operations. I have run some tests to pinpoint the problem, and I got the
following results:
0.6+0.8=1.4 but 9.6+4.8=14.399999999999999
0.8+5.4=6.2 but 10.8+5.4=16.200000000000003
Is there any way to fix this?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5389>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs