From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3286 invoked from network); 7 Apr 2022 15:07:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Apr 2022 15:07:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1649344021; b=K4NWempnODDCY1aFJIOTZ4BxQ4IZEL3LaGKnYumVozwn6fmhff6GKXLFAzB1VzZsGM+VZEAFye zWy/58a2sVe3xSb/r1yjt0X1BBk9OplFfZIXDhr1dVy84jnE4Gyoklg19pPsO/Scf1d+xy6UXR lMPsUQFTD8PDR+IkgFqOa/lIweP6RNBfrN/etYKax3LZtzElRNVykoAiK/j3/6pD1X+aqpM1MJ 5er9FzrvFgUiz3y4lDQRVQTuCH7BDHay7Pg6/OvWUuCw7S7u6lhYmrVBGBAkcocFXqfoobVCn4 ZqegXcS+FYVLvomhr76HsCHhNpM5nqSjev7yIcACnoCf1Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1649344021; bh=jv80JZjpNCBdJsmytefM28XtBGcU/SqszI+dylhrtXs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=qTsdUBoRckZnrkyWkGIMOB8oGrmG9DKGU5Uz07SwW7VZFV+YML7heJ/+L+bLjcOe+MXFWkJqb3 gLlf2Uyi5TzJkCjATucIj1V1YywOKoNSpOeNaocDHPotAQpGFGjPPncmxixduYLYe5t6hTaCKl A47E5keRmcukTP4TKdwOODLUfyfvRaH/AIfk3NyGajET4C5i/s9WaXdYw3T6pgz97iJ5xqKgSg bT3Fd9MKJptDRHUzCZjCTxrG6sGgEJ2YdMAQ5cJPn9mbk9Aigx06QvufCNN09zCcnQrLGv9jY5 KlISbg7DwJvI0q9smW/EGm4z00t2hUQPmmt9PZifTPSMtg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5rQd2lwzxBvZG6XDPpVQwdx5aoKienU5skAj78ELjoU=; b=JbAjZRb4JmzoRSi95fFTMP82tA r+uw2gCdmRfVnAULEoXkOe2fE26i/8ELhmz633vDyC5ztd1IDHMiWSuCUkqU6YAIuThJpHB+V56R2 UTXv8IV7w8ILtloOAR2ffiecUhWfK3r1X/LiZJ5+xdfMw/OuA/8gtA/9IgSK9A319pxII7F1QdaWO f/Ky2MLQ19LdaXgZSu2iWRwLsIQ+z39KzvXnQwVsxi/rxbjlVndIN40lTjW4BW9SNZefpSDcQGCVt CtpSewxxx3R5ZwarpcP3j91GoEF9T0eZbfkF6EEsyrxcfkazRMWeJj61Sc795SpQOvi+K064i8Pkn vqqv2oUw==; Received: from authenticated user by zero.zsh.org with local id 1ncTiu-000O3r-SD; Thu, 07 Apr 2022 15:07:01 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:55008) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ncTif-000NjF-Jx; Thu, 07 Apr 2022 15:06:46 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 5C1D2183; Thu, 7 Apr 2022 17:06:45 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 37EFB28001DB; Thu, 7 Apr 2022 17:06:45 +0200 (CEST) Date: Thu, 7 Apr 2022 17:06:45 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: floating-point precision and zsh vs ksh93 and coreutils Message-ID: <20220407150645.GB1179089@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20220323163646.GB1190496@cventin.lip.ens-lyon.fr> <20220327082652.fg6uef5munymssm6@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.2+9 (f082dd14) vl-138565 (2022-03-25) X-Seq: 50015 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: 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 - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)