Skip to content
Snippets Groups Projects
Commit 58b326f0 authored by Viktor's avatar Viktor Committed by Leo Balter
Browse files

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
parent 9fd3b582
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment