Skip to content

fix significant figure rounding#373

Closed
Safari77 wants to merge 1 commit intoprintfn:mainfrom
Safari77:sf
Closed

fix significant figure rounding#373
Safari77 wants to merge 1 commit intoprintfn:mainfrom
Safari77:sf

Conversation

@Safari77
Copy link
Copy Markdown
Contributor

e.g. "12.9 to 2 sf" returns now 13.

Many tests are invalid because they truncate the real result instead of rounding properly.
Somebody has to fix the tests (not me).

e.g. "12.9 to 2 sf" returns now 13.
@printfn
Copy link
Copy Markdown
Owner

printfn commented Jan 2, 2026

Thanks, I've merged this now. There does seem to be a small bug where when e.g. "0.499" gets rounded to "0.500" the trailing zeroes are not being dropped, but I've merged it regardless since it's just a small aesthetic bug.

@printfn printfn closed this Jan 2, 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.

2 participants