Skip to content

Fix CLI significant-figure precision - #196

Open
prekitt wants to merge 2 commits into
PaddiM8:masterfrom
prekitt:fix/precision-significant-figures
Open

prekitt wants to merge 2 commits into
PaddiM8:masterfrom
prekitt:fix/precision-significant-figures

Conversation

@prekitt

@prekitt prekitt commented Nov 1, 2026 •

Copy link
Copy Markdown

Summary

  • Keep calculations at full internal precision when the CLI precision flag is used.
  • Format CLI results to the requested number of significant figures.
  • Expose significant-figure formatting on CalculationResult and clarify the flag description.
  • Add regression coverage for (175*5)/(0.8206*293.3), verifying full precision near 3.635502749312599 and 3 significant figures as 3.64.

Verification

  • cargo build --workspace
  • cargo test --workspace (82 tests 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.

1 participant