Skip to content

fix: large decimals that round to too many digits must fail parsing - #76

Merged
gapple merged 2 commits into
developfrom
large-decimal-rounding
Oct 27, 2026
Merged

gapple merged 2 commits into
developfrom
large-decimal-rounding

Conversation

@gapple

@gapple gapple commented Oct 27, 2026

Copy link
Copy Markdown
Owner

From the httpwg tests: Rounding 999999999999.9996 to three decimal places goes up to 1000000000000.0, which exceeds the limit of 12 integer-portion digits

The check on integer-portion digits took place on the original number before rounding.
As defined in the spec, move it to the rounded value.

@gapple gapple self-assigned this Oct 27, 2026
@gapple gapple added the bug Something isn't working label Oct 27, 2026
@gapple
gapple force-pushed the large-decimal-rounding branch from eba3646 to 59c1390 Compare October 27, 2026 20:10
@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f330d4c) to head (59c1390).
⚠️ Report is 1 commits behind head on develop.
✅ All tests successful. No failed tests found.

Additional details and impacted files
Components Coverage Δ
Parser 100.00% <ø> (ø)
Serializer 100.00% <100.00%> (ø)
Types 100.00% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@gapple
gapple merged commit 6b393ed into develop Oct 27, 2026
18 checks passed
@gapple
gapple deleted the large-decimal-rounding branch October 27, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant