Correct set up

This commit is contained in:
Frank Yung-Fong Tang 2021-12-13 16:02:15 -08:00 committed by Rick Waldron
parent 6fecbe5257
commit b9cac998df
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ features: [Intl.NumberFormat-v3]
locale: [en-US]
---*/
var nf = new Intl.NumberFormat('en-US');
var nf = new Intl.NumberFormat('en-US', {maximumFractionDigits: 20});
// The value 100,000 should only be interpreted as infinity if the input is the
// string "Infinity".
@ -18,7 +18,7 @@ assert.sameValue(nf.format('100000'), '100,000');
// input is the string "-Infinity".
assert.sameValue(nf.format('-100000'), '-100,000');
assert.sameValue(nf.format('1.0000000000000001'), '1');
assert.sameValue(nf.format('-1.0000000000000001'), '-1');
assert.sameValue(nf.format('1.0000000000000001'), '1.0000000000000001');
assert.sameValue(nf.format('-1.0000000000000001'), '-1.0000000000000001');
assert.sameValue(nf.format('987654321987654321'), '987,654,321,987,654,321');
assert.sameValue(nf.format('-987654321987654321'), '-987,654,321,987,654,321');