The algebra solver give wrong answer on certain equation if phrased in particular order
Reported by
mohitmis...@gmail.com,
Dec 13 2017
|
|||
Issue description
<b>Chrome Version : <Copy from: 'about:version'></b>
URLs (if applicable) :NA
Other browsers tested:No
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari:
Firefox:
Edge:
What steps will reproduce the problem?
(1)Go to google search.
(2)put 10^17+100-10^17(It gives 0 as a result)
(3)put 10^17-10^17+100(it gives 100 as a result)
What is the expected result?
expected result should be 100 as its producing in step (3)
What happens instead?
it Gives 0
Please provide any additional information below. Attach a screenshot if
possible.
,
Dec 17 2017
Just like 99.9999% of the web, it uses the standard IEEE754 double-precision float arithmetic, which can only preserve 15 decimal digits *reliably* [1] so let's look at the numbers: 10^17 = 100000000000000000 = 18 digits = 1.0e17 internally +100 = 100000000000000100 = 18 digits = 1.0e17 internally because the added "1" is a 16th digit so it's past the limit [1]: https://en.wikipedia.org/wiki/IEEE_754#cite_ref-5
,
Dec 29 2017
Able to reproduce this issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome stable version #63.0.3239.108 and latest canary #65.0.3306.0. This is a non-regression issue as it is observed from M50 old builds. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!!
,
Jan 5 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by krajshree@chromium.org
, Dec 17 2017