Skip to content

Fix constructor logic: Always apply rounding if fractionDigits or significantDigits is set#111

Open
eemeli wants to merge 1 commit into
mainfrom
fix-ctor
Open

Fix constructor logic: Always apply rounding if fractionDigits or significantDigits is set#111
eemeli wants to merge 1 commit into
mainfrom
fix-ctor

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented May 18, 2026

Fixes this part of #108:

The spec's note in the Amount constructor is incorrect: The spec always stores Number and BigInt arguments directly in [[AmountValue]], regardless of the rounding options.

@eemeli eemeli requested a review from jessealama May 18, 2026 09:23
@github-actions
Copy link
Copy Markdown

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://tc39.github.io/proposal-amount/pr-preview/pr-111/

Built to branch gh-pages at 2026-05-18 09:23 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@eemeli eemeli mentioned this pull request May 18, 2026
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.

3 participants