-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
printf: %a not supported (but partially implemented) #2776
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
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There's been progress on this in #5128, but it's not quite correct yet. The current output of you example is
Looks like my implementation isn't quite right. |
Some observations from experimenting with
|
It looks like the function to update now is |
Oh, sorry, I didn't notice this issue. I dug into this in #7364 as well. Behaviour is platform-dependent, and we can't get the same precision as x86(-64) by just using Rust's |
I think this was fixed in #7631? |
Yeah, to the extend this can be "fixed". See #7641 for the documentation of the current behaviour. |
Here is the description of the floating-point conversions: https://www.gnu.org/software/libc/manual/html_node/Floating_002dPoint-Conversions.html
This seems to be called
CninetyNineHexFloatf
in the code:coreutils/src/uu/printf/src/tokenize/num_format/formatters/cninetyninehexfloatf.rs
Line 11 in ca705e5
coreutils/src/uu/printf/src/tokenize/sub.rs
Line 163 in ca705e5
The text was updated successfully, but these errors were encountered: