Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make minimumFractionDigits = maximumFractionDigits #3494

Merged
merged 1 commit into from
Apr 25, 2022

Conversation

FrankYFTang
Copy link
Contributor

Make minimumFractionDigits equal to maximumFractionDigits while
roundingIncrement != 1 to sync with latest spec change in
tc39/proposal-intl-numberformat-v3#85
which landed to spec text in Feb 22, 2022

@sffc @romulocintra

Make minimumFractionDigits equal to maximumFractionDigits while
roundingIncrement != 1 to sync with latest spec change in
tc39/proposal-intl-numberformat-v3#85
which landed to spec text in Feb 22, 2022
@FrankYFTang
Copy link
Contributor Author

@ryzokuken @jugglinmike

Copy link
Contributor

@sffc sffc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -39,7 +39,8 @@ for (const [value, expected] of values) {
get roundingIncrement() {
callOrder.push("roundingIncrement");
return value;
}
},
minimumFractionDigits: 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Observation: This case, where maximumFractionDigits is not present and therefore defaults to 3, wasn't one that was considered when making the spec change. This is a little bit awkward, but I think it's fine, since in most cases roundingIncrement should have an explicit maximumFractionDigits value set (rather than relying on the implicit default).

Copy link
Member

@romulocintra romulocintra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rwaldron rwaldron merged commit 576c0c0 into tc39:main Apr 25, 2022
@FrankYFTang FrankYFTang deleted the FractionDigitsEquals branch July 21, 2022 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants