Replies: 1 comment
-
|
There were improvements made to roundtripping floats in v1.26.0: https://github.com/micropython/micropython/releases/tag/v1.26.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think this may be more of a "minimal in terms of lines of source", rather than binary size; it relies on a 64x128->192-bit multiplication primitive and a 617(?)-element, 128-bit look-up table. Still, I thought it might be of interest to micropython folks.
The github repository states that "[t]he binary size is ~12kiB on an ARM-based macOS".
https://vitaut.net/posts/2025/smallest-dtoa/
My own findings on object size, not actually running anything:
A variant for 32-bit floats would probably be smaller: for one thing, I think the table would get by with 64-bit values and have a mere 77 entries.
Beta Was this translation helpful? Give feedback.
All reactions