fix for the wrong test of Intl.NumberFormat (ToRawPrecision) (#857)

1) (123.44500) == 123.444999999999993179
2) (123.44500).toPrecision(5) === "123.44" gives correct value in Chrome and Firefox;

Ref https://github.com/tc39/ecma402/issues/128
This commit is contained in:
Viktor 2017-03-02 02:14:33 +05:00 committed by Leo Balter
parent 9fd3b582c7
commit 58b326f0c4
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ var testData = {
"-123.45": "-123.45",
"123.44499": "123.44",
"-123.44499": "-123.44",
"123.44500": "123.45",
"-123.44500": "-123.45",
"123.44500": "123.44",
"-123.44500": "-123.44",
"123.44501": "123.45",
"-123.44501": "-123.45",
"0.001234": "0.001234",