[GHC] #8823: showFloat for higher precision types produces strange results for some values

GHC ghc-devs at haskell.org
Tue Feb 25 13:45:06 UTC 2014


#8823: showFloat for higher precision types produces strange results for some
values
------------------------------------------------+--------------------------
        Reporter:  axman6                       |            Owner:
            Type:  bug                          |           Status:  new
        Priority:  low                          |        Milestone:
       Component:  Prelude                      |          Version:
      Resolution:                               |  7.8.1-rc1
Operating System:  Unknown/Multiple             |         Keywords:
 Type of failure:  Incorrect result at runtime  |     Architecture:
       Test Case:                               |  Unknown/Multiple
        Blocking:                               |       Difficulty:
                                                |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by axman6):

 To reproduce the bug, try changing the value of floatDigits to ~56 and
 running `floatToDigits 10 {FOne,FOneThousand,FTwo}`. As can be seen with
 FPi the correct results are produced.

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


More information about the ghc-tickets mailing list