[GHC] #8285: unexpected behavior with encodeFloat on large inputs

GHC ghc-devs at haskell.org
Tue Jan 28 21:37:52 UTC 2014


#8285: unexpected behavior with encodeFloat on large inputs
------------------------------------------------+--------------------------
        Reporter:  carter                       |            Owner:
            Type:  bug                          |           Status:  new
        Priority:  normal                       |        Milestone:  7.8.1
       Component:  Compiler                     |          Version:  7.7
      Resolution:                               |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:
 Type of failure:  Incorrect result at runtime  |  Unknown/Multiple
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------

Comment (by hvr):

 Fwiw, `encodeFloat 1 (2^31)` behaves just like the C99 function
 [http://pubs.opengroup.org/onlinepubs/7999959899/functions/ldexp.html
 ldexp(3)] does for those arguments.

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


More information about the ghc-tickets mailing list