[GHC] #5683: bug in signum function

GHC cvs-ghc at haskell.org
Mon Dec 5 21:33:14 CET 2011


#5683: bug in signum function
---------------------------------+------------------------------------------
    Reporter:  tristes_tigres    |       Owner:         
        Type:  bug               |      Status:  new    
    Priority:  normal            |   Component:  Prelude
     Version:  7.0.3             |    Keywords:         
    Testcase:                    |   Blockedby:         
          Os:  Unknown/Multiple  |    Blocking:         
Architecture:  Unknown/Multiple  |     Failure:  Other  
---------------------------------+------------------------------------------
 IEE754 standard states, that every floating point operation involving a
 NaN should produce NaN. However, in GHC 7.0.3 (in the current Haskell
 platform) evaluating[[BR]]
 > signum (0.0/0.0)[[BR]]
 produces -1

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



More information about the Glasgow-haskell-bugs mailing list