-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.
Description
- Version: 10.7, 10.8 (possibly others, tested these two)
- Platform: Darwin 15.6.0, Linux 4.17.10-1-ARCH
$ node
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 3 }).format(1234500)
'1,234,500'
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 3 }).format(1234560)
'1,234,560'
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 1 }).format(1234560)
'1,234,560'
Previously (node v9.2, at least), this behaved correctly:
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 3 }).format(1234500)
'1,230,000'
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 3 }).format(1234560)
'1,230,000'
> new Intl.NumberFormat(undefined, { maximumSignificantDigits: 1 }).format(1234560)
'1,000,000'
Metadata
Metadata
Assignees
Labels
i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.