#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs