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

  * status:  patch => merge


Comment:

 I pushed all these to HEAD.  We want these two in 7.0.2:

 {{{
 Sun Oct 24 11:29:42 PDT 2010  Daniel Fischer <[email protected]>
   * FIX #4383
   Use a better approximation to logBase 10 2 to prevent leading zeros in
 floatToDigits.

 Sun Oct 24 19:50:41 BST 2010  Daniel Fischer <[email protected]>
   * Fix typo in floatToDigits
   The mDn value for powers of 2 >= floatDigits x - 1 was typo'ed, leading
 to longer than necessary show results in a few cases (e.g. 2.0^852).
   Corrected in accordance with Burger and Dybvig's paper.
 }}}

 and these two should stay in HEAD only:

 {{{
 Sun Oct 24 20:07:07 BST 2010  Daniel Fischer <[email protected]>
   * Cache for powers of 10
   Add a cache for commonly needed powers of 10 to speed up floatToDigits.

 Sun Oct 24 19:59:14 BST 2010  Daniel Fischer <[email protected]>
   * Performance enchancement for floatToDigits
   Use quot and quotRem instead of div and divMod for dividing positive
 Integers since that is a bit faster.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4383#comment:5>
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

Reply via email to