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

Use python ints throughout, adding float64 to test #26

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Use python ints throughout, adding float64 to test #26

merged 2 commits into from
Jun 10, 2024

Conversation

awf
Copy link
Collaborator

@awf awf commented Jun 5, 2024

Add float64 to formats, and update integer computations to handle them.

Fixes #25

@awf awf changed the base branch from main to simplify-round June 5, 2024 15:34
Base automatically changed from simplify-round to main June 6, 2024 12:51
awf added a commit that referenced this pull request Jun 6, 2024
awf added 2 commits June 6, 2024 17:35
(Fixes #25, newly ailing test for float64 depending on later PR)
Comment on lines +80 to +83
# In range - compute value
if fval is None:
fval = sign * fsignificand * 2.0**expval

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to move this below as float64 was overflowing

@scott-griffiths scott-griffiths marked this pull request as ready for review June 10, 2024 08:43
@scott-griffiths
Copy link
Collaborator

Diff looks fine to me. I haven't confirmed the problem or the fix for 32-bit Python (it's annoying difficult to test) but as the issue reporter has done so it LGTM.

@awf awf merged commit bca716b into main Jun 10, 2024
1 check passed
@awf awf deleted the fix-25 branch June 10, 2024 14:37
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.

test/test_encode.py::test_encode[binary32] is faling on 32-bit x86
2 participants