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

Support for atomic doubles #1

Closed
BishopWolf opened this issue Oct 30, 2024 · 2 comments
Closed

Support for atomic doubles #1

BishopWolf opened this issue Oct 30, 2024 · 2 comments

Comments

@BishopWolf
Copy link

Please add support for atomic doubles. Although it is easy to implement using struct pack and unpack. It is better to have something handled natively.

Naive implementation

>>> d = 1.234
>>> b = struct.pack('d', d)
>>> b
b'X9\xb4\xc8v\xbe\xf3?'
>>> d2, = struct.unpack('d', b)
>>> d2
1.234
@RuneBlaze
Copy link
Owner

Sure let me look into it 🤔 .... Good suggestion!

@RuneBlaze
Copy link
Owner

Ok version 0.0.13 should do it -- see the updated README and DOCS 🫥 .

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