bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy Accurate Reading and Writing of Floating-Point Numbers


From: Marc Nieper-Wißkirchen
Subject: Re: Easy Accurate Reading and Writing of Floating-Point Numbers
Date: Tue, 19 May 2020 17:35:07 +0200

Am Di., 19. Mai 2020 um 17:10 Uhr schrieb Marc Nieper-Wißkirchen
<address@hidden>:

> I have just discovered the "dtoastr" module, which seems to do what I
> want. It is, however, locale-dependent, and there is no "c_dtoastr"
> version as there is a "c_strtod". (Could we get such a wrapper?)

Or a version "c_dtoastr" that uses "c_snprintf" and "c_strtod" internally.

Marc

P.S. Could we also get a flag for "(c_)strtod", with which one can
choose the %e or %f format explicitly? At the moment, it always uses
"%g".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]