[GHC] #5764: Double addition error

GHC cvs-ghc at haskell.org
Thu Jan 12 10:21:48 CET 2012


#5764: Double addition error
-----------------------------------------+----------------------------------
 Reporter:  jimstutt                     |          Owner:          
     Type:  bug                          |         Status:  new     
 Priority:  normal                       |      Component:  Compiler
  Version:  7.2.2                        |       Keywords:          
       Os:  Unknown/Multiple             |   Architecture:  x86     
  Failure:  Incorrect result at runtime  |       Testcase:          
Blockedby:                               |       Blocking:          
  Related:                               |  
-----------------------------------------+----------------------------------
 ghci>0.1+0.2
 ghci>3.000000000000004

 ghc produces the same result with:

 foldl (+) [0.1,0.2]

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5764>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list