Hi Marc,
> > The problem with the glibc code is that they have specialized code for each
> > format:
> > - IEEE 754 single-precision,
> > - IEEE 754 double-precision,
> > - 'long double' with LDBL_MANT_DIG == 106 (a.k.a. "double double"),
> > - 'long double' with LDBL_MANT_DIG == 113 (a.k.
Hi Bruno,
Am Mo., 26. Aug. 2024 um 12:37 Uhr schrieb Bruno Haible :
> Hi Marc,
>
> > Gnulib
> > offers strtod replacements, but these refer to conversion routines of the
> > host systems and may lack the accuracy described in Clinger's well-known
> > paper [1] IIUC.
> >
> > Wouldn't it make sense
Hi Marc,
> Gnulib
> offers strtod replacements, but these refer to conversion routines of the
> host systems and may lack the accuracy described in Clinger's well-known
> paper [1] IIUC.
>
> Wouldn't it make sense to include an accurate conversion algorithm in
> Gnulib like [2] with the small imp
Gnulib contains modules like dtoastr that accurately convert floating point
numbers to strings. For the opposite direction of conversion, Gnulib
offers strtod replacements, but these refer to conversion routines of the
host systems and may lack the accuracy described in Clinger's well-known
paper