[GHC] #8780: abs for IEEE floating point is slightly wrong.
GHC
ghc-devs at haskell.org
Sun Mar 8 17:56:58 UTC 2015
#8780: abs for IEEE floating point is slightly wrong.
-------------------------------------+-------------------------------------
Reporter: augustss | Owner:
Type: bug | Status: closed
Priority: low | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: duplicate | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: #7858 | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Replying to [comment:2 augustss]:
> It seems the printing of -0 has changed. Here's my session
>
> {{{
> $ ghci
> GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer-gmp ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> let x = -0
> Prelude> x
> 0
> }}}
This part is just because `x` defaulted to Integer on this line; `-0.0` is
still printed as `-0.0`. (7.8.3 has the MR disabled in ghci by default.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8780#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list