Update spec text to match latest February 2026 API#85
Merged
jessealama merged 16 commits intomainfrom Mar 2, 2026
Merged
Conversation
Rewrite the Amount specification text with a new value model that separates the numeric value from its precision, remove .with() in favor of .convertTo(), add ECMA-402 toLocaleString and locale/usage- based convertTo, and normatively reference CLDR for unit conversion and preferences.
|
eemeli
requested changes
Feb 27, 2026
Member
eemeli
left a comment
There was a problem hiding this comment.
We're still inlining/defining way too much functionality that's already in the spec, and which we'll be able to move around and refactor during Stage 2 so that we can avoid introducing new text.
Also, remove CountFractionDigits (no longer needed).
Also, remove several unused AOs.
Add note saying that that's for 402 to override.
eemeli
requested changes
Feb 27, 2026
eemeli
approved these changes
Feb 28, 2026
Member
eemeli
left a comment
There was a problem hiding this comment.
I went ahead and applied some changes directly, to more clearly set this proposal as being stacked on top of keep-trailing-zeros. To that effect, its biblio.json is included and used to make sure that we're e.g. calling FormatNumericToString with its third argument.
I also removed the StringIntlMV RS, as the changes to it are all within keep-trailing-zeros.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This brings the spec text up-to-date with the API changes proposed in #80 and #81 . The main difference is that we support a notion of storage of internal values of Amounts as a disjunctive type (String, BigInt, Number), as well as a new
.convertTomethod that supports unit conversion, following CLDR.