Re: [GHC] #5683: bug in signum function

#5683: bug in signum function -------------------------------------+------------------------------------- Reporter: tristes_tigres | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.6.1 Component: Prelude | Version: 7.0.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by tristes_tigres): Replying to [comment:12 rwbarton]:
This was fixed in 7.10.1. `signum (-0.0)` is `-0.0` now as well.
Just tried it on haskell.org page signum(0.0/0.0) -1.0 :: Fractional a => a Doesn't look right to me. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/5683#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC