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

Change smallest_power_of_ten to -64 for floats. #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deadalnix
Copy link

18446744073709551615e-65 rounds to 0, and it is the largest possible value with exponent -65. Therefore, we can assume the minimal exponent for which we don't round to zero actually is -64.

@lemire
Copy link
Member

lemire commented Jan 10, 2023

Thanks !!!

@deadalnix
Copy link
Author

Merge conflict resolved.

`18446744073709551615e-65` rounds to `0`, and it is the largest possible value with exponent `-65`. Therefore, we can assume the minimal exponent for which we don't round to zero actually is `-64`.
@deadalnix
Copy link
Author

I rebased on top of the right branch, sorry for the confusion. Is it good to merge? if not, what's missing?

@lemire
Copy link
Member

lemire commented Jul 12, 2023

@deadalnix I don't think that there was necessarily a problem with the PR... it did not seem necessary to sync. I do need to carefully check the changes to make sure that we don't introduce bugs. I expect to eventually merge this PR.

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.

None yet

2 participants