Repository navigation
avoid binary noise in fixed decimal text - #2995
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Precision formatting and validation crates/functions/src/text.rs, docs/function-parity.md |
format_fixed uses the shortest representation of the rounded number, then truncates or pads fractional digits. Integer formatting and optional comma grouping remain in place. Tests cover 16, 20, and 127 decimal places. The parity document records the behavior and Excel measurement context. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- Editing a long number shows 1.23E+19 instead of its digits, and pressing Enter switches the cell to Scientific format #2825: This issue concerns cell-editor formatting, which this PR does not change.
Suggested reviewers: echelon
Merge Risk: 
Minimal · up to 11d6f
-
No merge-blocking formatting issue was established; the change is ready for normal checks.
Architecture risk: 
Low · up to bd8cf
-
The change affects 2 systems.
Changed systems:
crates,docsArchitecture concerns
No architecture-level concerns identified.Review details
-
Systems and components
- observed — crates (service) was modified; 1 changed file maps to changed impact.
- observed — docs (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in crates/functions/src/text.rs:
format_fixedno longer formats the absolute value directly to the requested precision. It uses the value’s shortest representation, limits the fractional part toddigits, and pads it with zeros when needed; integer formatting and optional comma grouping remain in place. - observed — Modified behavior in crates/functions/src/text.rs: Added expected-output checks for
FIXEDandDOLLARwith 16, 20, and 127 decimal places. - observed — Modified behavior in docs/function-parity.md: The metadata now dates the review and update to 2026-10-31 and describes the FIXED and DOLLAR precision behavior and measurement environment. It replaces the prior summary of LAMBDA, number-text coercion, INDEX, SUBTOTAL, and AGGREGATE changes.
- observed — Modified behavior in docs/function-parity.md: The revision history adds a 2026-10-31 minor entry stating that FIXED and DOLLAR format the rounded number’s shortest decimal representation before padding fractional zeroes, with examples at 16 and 20 places and the Excel measurement environment.
-
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Landed in main (fb1e59f). Thank you for the contribution, @Harrison-Booth! |
Summary
Measured the mismatches in Windows Excel 16.0 build 20527, LCID 1033. No locale independence is claimed.
Validation
cargo fmt --check— passed.git diff --check— passed.🤖 Generated with Claude Code
Summary by CodeRabbit