Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue with truncating implicitly rounding in some cases #600

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

paupino
Copy link
Owner

@paupino paupino commented Jul 16, 2023

Fixes #599

This fixes truncation by performing a rescale without implicit rounding. Previously, we were using div by 10^n approach, however due to the nature of division happening per word, it was causing rounding issues when multiple words were being used..

@paupino paupino enabled auto-merge (squash) July 16, 2023 23:22
@paupino paupino merged commit deeb242 into master Jul 17, 2023
@paupino paupino deleted the issue/599 branch July 17, 2023 00:05
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.

trunc_with_scale issue
1 participant