[GHC] #14377: some results not expected with the addition
GHC
ghc-devs at haskell.org
Mon Oct 23 09:24:01 UTC 2017
#14377: some results not expected with the addition
-------------------------------------+-------------------------------------
Reporter: vanto | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: invalid | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by vanto):
* status: new => closed
* resolution: => invalid
Comment:
In this other example, you can see that the calculation results between
OCaml and GHC occur for the same numbers. For me there is a relationship
between these two systems. It is necessary to do another search to find it
and thus to eliminate this miscalculation.\\
{{{
$ ocaml
OCaml version 4.04.0
# 16.0/.0.2;;
- : float = 80.
# 16.0/.0.02;;
- : float = 800.
# 16.0/.0.002;;
- : float = 8000.
# 16.0/.0.0002;;
- : float = 80000.
# 16.0/.0.00002;;
- : float = 799999.99999999988
# 16.0/.0.000002;;
- : float = 8000000.
# 16.0/.0.0000002;;
- : float = 80000000.
# 16.0/.0.00000002;;
- : float = 800000000.
# 16.0/.0.000000002;;
- : float = 7999999999.999999
# 16.0/.0.0000000002;;
- : float = 80000000000.
# 16.0/.0.00000000002;;
- : float = 800000000000.
# 16.0/.0.000000000002;;
- : float = 8e+012
# 16.0/.0.0000000000002;;
- : float = 8e+013
# 16.0/.0.00000000000002;;
- : float = 8e+014
# 16.0/.0.000000000000002;;
- : float = 7999999999999999.
# 16.0/.0.0000000000000002;;
- : float = 8e+016
# 16.0/.0.00000000000000002;;
- : float = 8e+017
# 16.0/.0.000000000000000002;;
- : float = 7.999999999999999e+018
# 16.0/.0.0000000000000000002;;
- : float = 8e+019
# 16.0/.0.00000000000000000002;;
- : float = 8e+020
#
}}}
Today I decided to close this ticket as invalid because I do not know what
else to choose to close this ticket. But of course you can reopen it.
Thank you for reading this.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14377#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list