8000 struct module: Support for half-precision floats ("e") · Issue #7467 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

struct module: Support for half-precision floats ("e") #7467

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

Closed
scy opened this issue Jun 28, 2021 · 1 comment · Fixed by #12799
Closed

struct module: Support for half-precision floats ("e") #7467

scy opened this issue Jun 28, 2021 · 1 comment · Fixed by #12799

Comments

@scy
Copy link
Contributor
scy commented Jun 28, 2021

CPython's struct module supports packing and unpacking half-precision floats with the format code e since 3.6. These are 16 bit long:

  • 1 bit sign
  • 5 bit exponent
  • 10 bit significand

It would be awesome if MicroPython could support them too.

RetiredWizard pushed a commit to RetiredWizard/micropython that referenced this issue Jan 22, 2023
Allow lines with ends out of bitmap in `bitmaptools_obj_draw_line`
@dpgeorge
Copy link
Member

Support for half-floats is now implemented.

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 a pull request may close this issue.

2 participants
0