[GHC] #4383: Uncanonical display of Double

GHC cvs-ghc at haskell.org
Sat Oct 9 00:16:50 EDT 2010


#4383: Uncanonical display of Double
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |       Owner:                             
        Type:  bug                |      Status:  new                        
    Priority:  normal             |   Component:  libraries/base             
     Version:  6.12.3             |    Keywords:  Double, show               
    Testcase:                     |   Blockedby:                             
          Os:  Unknown/Multiple   |    Blocking:                             
Architecture:  Unknown/Multiple   |     Failure:  Incorrect result at runtime
----------------------------------+-----------------------------------------
Changes (by augustss):

 * cc: lennart@… (added)


Comment:

 That code is pretty impenetrable. :)

 My guess is that the log estimator doesn't do the right thing for negative
 exponents.  Try (fixup (k0-1)).

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


More information about the Glasgow-haskell-bugs mailing list