This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/2] New strfrom functions
Florian Weimer wrote:
Does the standard also contain some gdtoa-like functionality (string
formatting which results in the shortest possible representation and
converts back to the original number)?
I don't see anything about it in the latest draft I could find, at:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1778.pdf
The actual ISO/IEC TS 18661-1 standard costs too much for me.
This seems to be lacking from the standard library, and it is rather
non-trivial to implement efficiently.
It would be nice to have this capability in glibc. Emacs would use it. Currently
Emacs uses an inefficient algorithm to print floating-point numbers.