Skip to content

Fixes issue with is_integer failing on decimal bounds #605

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

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Conversation

paupino
Copy link
Owner

@paupino paupino commented Aug 23, 2023

This fixes #604

An issue was found where by precise integers >= scale 10 were being scaled back too aggressively causing numbers at an integer bound for the mantissa to be rounded toward the integer itself.
It was effectively "skipping" a power of 10 during comparison - which when the mantissa was a power of 10 itself, would cause inaccurate results.

@paupino paupino enabled auto-merge (squash) August 23, 2023 14:30
@paupino paupino merged commit 951512d into master Aug 23, 2023
@paupino paupino deleted the issue/604 branch August 23, 2023 14:49
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.

is_integer has BUG
1 participant