[GHC] #5683: bug in signum function
GHC
cvs-ghc at haskell.org
Sun Dec 11 22:14:20 CET 2011
#5683: bug in signum function
------------------------------+---------------------------------------------
Reporter: tristes_tigres | Owner:
Type: bug | Status: new
Priority: normal | Component: Prelude
Version: 7.0.3 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Other | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
Comment(by tristes_tigres):
Thoughts about the right (meaning, in the spirit of IEEE754) way to fix
this:
Operations truncate, round, ceiling and floor on a floating-point type
should return floating-point type, not integral. The operation of rounding
need not and should not be combined with type conversion.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5683#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list