[PATCH] benchtests: Improve readability of JSON output

Florian Weimer fweimer@redhat.com
Thu Apr 24 07:36:00 GMT 2014


On 04/23/2014 04:26 PM, Joseph S. Myers wrote:

>>> It's a pity that we don't have (on GNU/Linux at least) a canonical library
>>> to get gdtoa-type functionality from.
>>
>> I think the "a" specifier would work but JSON does not support hex formats.
>
> You can also use DECIMAL_DIG as the precision with "g" (presuming you are
> in round-to-nearest mode for both output and input) (or FLT_DECIMAL_DIG,
> DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG, given C11).  Is there something making
> that unsuitable?

What about the locale sensitivity?

-- 
Florian Weimer / Red Hat Product Security Team



More information about the Libc-alpha mailing list