Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: floating-point precision and zsh vs ksh93 and coreutils
- X-seq: zsh-workers 50015
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: floating-point precision and zsh vs ksh93 and coreutils
- Date: Thu, 7 Apr 2022 17:06:45 +0200
- Archived-at: <https://zsh.org/workers/50015>
- In-reply-to: <CAH+w=7bEVCg8pGOYjF6OQv57v76uq8CvqtyajCoOES7RVynf_A@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <20220323163646.GB1190496@cventin.lip.ens-lyon.fr> <20220327082652.fg6uef5munymssm6@chazelas.org> <CAH+w=7bEVCg8pGOYjF6OQv57v76uq8CvqtyajCoOES7RVynf_A@mail.gmail.com>
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.
BTW, it would be even better if such a function were standardized
and in the standard library.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author