Skip to content

Round 10 and 11 digit General numbers instead of truncating - #87

Merged
borgar merged 1 commit into
borgar:masterfrom
rashoodz:fix-general-rounding
Oct 5, 2026
Merged

borgar merged 1 commit into
borgar:masterfrom
rashoodz:fix-general-rounding

Conversation

@rashoodz

@rashoodz rashoodz commented Oct 5, 2026

Copy link
Copy Markdown

General cuts off the fraction of a number with 10 or 11 integer digits instead of rounding it.

Pattern Value Excel numfmt 3.2.6
General 4403928373.5 4403928374 4403928373
General -4511987749.6 -4511987750 -4511987749
General 12345678901.5 12345678902 12345678901

The 10-digit branch used Math.floor and the 11-digit branch sliced toFixed(10). Both now round. A value that rounds up to 12 digits shows 1E+11.

🤖 Generated with Claude Code

@borgar
borgar merged commit 2ecc3e4 into borgar:master Oct 5, 2026
3 checks passed
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.

2 participants