Skip to content

[fix] exact string-based rounding for long numerals - #125

Open
nikosavola wants to merge 1 commit into
Mc-Zen:mainfrom
nikosavola:nikosavola/push-zxysvlkmwovm
Open

nikosavola wants to merge 1 commit into
Mc-Zen:mainfrom
nikosavola:nikosavola/push-zxysvlkmwovm

Conversation

@nikosavola

Copy link
Copy Markdown
  • round-integer no longer round-trips through float, so long or high-precision numerals are rounded exactly instead of being corrupted or left unrounded
  • all rounding modes and tie rules behave as before for short numbers
  • regression tests for 17+-digit values

- round-integer no longer round-trips through float, so long or high-precision numerals are
  rounded exactly instead of being corrupted or left unrounded
- all rounding modes and tie rules behave as before for short numbers
- regression tests for 17+-digit values
@Mc-Zen

Mc-Zen commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Thanks!

Did you make a performance comparison? I am concerned that the function call and while loop could hurt performance when rounding many numbers.

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