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

Poor accuracy in true division of integers #474

Open
skirpichev opened this issue Feb 12, 2025 · 0 comments
Open

Poor accuracy in true division of integers #474

skirpichev opened this issue Feb 12, 2025 · 0 comments
Assignees

Comments

@skirpichev
Copy link

For example:

>>> x, y = 15649, 2024092432744435552
>>> x/y
7.73136628883186e-15
>>> import mpmath
>>> float(mpmath.mpf(x)/mpmath.mpf(y))  # as in CPython
7.731366288831862e-15

The result expected to be correctly rounded with the round-half-to-even rule.

@msimacek msimacek self-assigned this Feb 12, 2025
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

No branches or pull requests

2 participants