[GHC] #14377: some results not expected with the addition
GHC
ghc-devs at haskell.org
Mon Oct 23 15:51:00 UTC 2017
#14377: some results not expected with the addition
-------------------------------------+-------------------------------------
Reporter: vanto | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | 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: closed => new
* resolution: invalid =>
Comment:
I just figured out how to fix that. that's why I re-open this ticket.
This idea came to me when calculating numbers with my HP Prime
calculator.\\
as I said above, GHC calculates well.
it's a matter of displaying a number.
we can give ourselves a limit in the display of the number which will
be for example 5 digits of precision after the decimal point. in a new
request ticket I talked about 11 precision digits in the display.\\
I specify for those who have not understood anything yet that it is a
precision in the display and not in the internal calculation. \\
5 digits may seem sufficient considering that GHC is more used in the
functional part more than in the intensive mathematical calculation.
example:\\
if the number is:{{{79.999999}}} he can become {{{80}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14377#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list