[Issue 3248] lossless floating point formatting

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 4 00:10:33 PST 2014


https://issues.dlang.org/show_bug.cgi?id=3248

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com

--- Comment #14 from yebblies <yebblies at gmail.com> ---
(In reply to hsteoh from comment #13)
> Wouldn't the most lossless format be to just dump the representation in
> hexadecimal (i.e., in the same format as a hexadecimal float literal)? That
> way you're guaranteed that you don't get excess precision where there is
> none, nor do you lose any bits.

That would no longer be human-readable.

--


More information about the Digitalmars-d-bugs mailing list