Hexadecimal floating point literals#4
Open
skirpichev wants to merge 6 commits intomainfrom
Open
Conversation
61c3afe to
8e4af61
Compare
This comment was marked as resolved.
This comment was marked as resolved.
8e4af61 to
e4c78fd
Compare
skirpichev
added a commit
to skirpichev/mpmath
that referenced
this pull request
May 10, 2025
skirpichev
added a commit
to skirpichev/mpmath
that referenced
this pull request
May 11, 2025
|
I support this proposal. It would be very useful for representing floating-points related to testing floating point arithmetic implementations and other places needing bitwise exactness. Our Coreblocks project would directly benefit from it, instead of relying on custom representation: https://github.com/kuznia-rdzeni/coreblocks/blob/5a9d8f5165c0da5dbc9315b21c19704f9eba228e/test/func_blocks/fu/fpu/fpu_test_common.py#L66 |
Owner
Author
|
@Arusekk, if this is helpful for you, probably you can use from_hex methods right now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add hexadecimal floating-point literals (IEEE 754-2008 §5.12.3) and support construction of floats from hexadecimal strings.
Implementation: skirpichev/cpython#10