Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: floating-point precision and zsh vs ksh93 and coreutils



On Thu, Apr 7, 2022 at 8:07 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2022-03-27 15:26:42 -0700, Bart Schaefer wrote:
> > Vincent's final contribution to that discussion was a link to the
> > dtoa() implementation in C by D.Gay ... which just for comparison is
> > more than 6000 lines of code or about 4% the size of the entire zsh C
> > code at the time I write this.
>
> I haven't looked at the code recently, but I thought that D. Gay's
> code provided several functions. For just the output to decimal,
> I suppose that this should be much shorter.

Actually, no.  I visited the site; each of the "several functions" is
isolated to its own file.  6k lines is JUST dtoa().  About a third of
it is huge lookup tables.




Messages sorted by: Reverse Date, Date, Thread, Author