[GHC] #5389: Floating point error

GHC cvs-ghc at haskell.org
Sun Aug 7 15:25:32 CEST 2011


#5389: Floating point error
------------------------------------------+---------------------------------
  Reporter:  Gabi                         |          Owner:                       
      Type:  bug                          |         Status:  closed               
  Priority:  normal                       |      Milestone:                       
 Component:  GHCi                         |        Version:  6.12.1               
Resolution:  invalid                      |       Keywords:  floating point errors
  Testcase:  9.6+4.8                      |      Blockedby:                       
Difficulty:                               |             Os:  Linux                
  Blocking:                               |   Architecture:  x86                  
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 I'm afraid that's expected. You'll get the same results in other languages
 too.

 Depending on what you're doing, you may want to use `Data.Fixed` or
 `Data.Ratio` instead.

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



More information about the Glasgow-haskell-bugs mailing list