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

Accuracy issue #5

Open
DhSufi opened this issue Dec 1, 2024 · 1 comment
Open

Accuracy issue #5

DhSufi opened this issue Dec 1, 2024 · 1 comment

Comments

@DhSufi
Copy link

DhSufi commented Dec 1, 2024

Hello, first of all thanks a lot for your work.

I found this issue:

from ieee754 import single
print(single(5.8))
prints ->   0 10000001 01110011001100110011001
expected -> 0 10000001 01110011001100110011010

# Last bit changes

Using ieee745 version: 0.11 and Python 3.11.9

Thanks for your time and consideration

@canbula
Copy link
Owner

canbula commented Dec 8, 2024

Thanks for your interest with this package. It is about whether we choose cutting the rest of the digits or rounding the last digit of the mantissa. Maybe I can add an option to the package for this situation. If you are interested in this subject, you can also check the web application for further details: numericalculator

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