delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/24/07:33:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2F40B3858012
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=schaeffler.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=schaeffler.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=WMVm12eIURWOe+B3RTkH3gg6BRA8ZHJxktgF+RkhiWsXs00PVUyaFlmQKo/+vaU9rsQSrsDKGCvIfXVrDdGTSKqShsStbNK9p8yCkUXTcel5m5j1Gn9pTPb0ybUsF/zxNgOm7haZ/MyKd0lceqoGe1O06jXPB8OdDC4wzC7U4cYWG7/3SI0CrNLHJjYJK473FsPqt7zH5vfqNMD5wY63tLkadJj+9ExG5IF+Y3/DndeMcmg+wCXH0I39Yaw3GS+1bH/s9GuWpqeSv8PpvXFphLgEFnaK2Hv9NMS+sAmlfPWtmU9JJsv4OBplKnKJGYxWFqRSrfrqQE8T4du75P3aYQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=ZoKjAMV4cXdwpL1GOLGTlmBTe8iSFOg4x4FCtGLcKbo=;
b=bxsDj2GDELRWLbZt0sNiQhOVtBdzGr4xMJHXskgJAAP41SmRJugAvjOXceCD6JDXQmLYOGTt4sM04j6hcRd7Fs9SLSF5NQzurDHrGx+rHXNrPx2qBZ7BoiD+LPsz01DyMsDdNNalTOxQ08dlBvWxCkBeF1opF53eWZBXBir6v2F9pEeXmc2Vwy4u8rik5+nPycezsQHhBbqc/8M8jd6YobyF3H2D2glfz8f5tUX9gtFAtG5jjDPms5fFgH334OesjuFYN1kayL0miAeoBvP+Eh6O50+E1MSIZWpYyjXnGeeFaCRQiJ25S0DNakajHU8ORpc4ba+ExacsNNL2hD1LXg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=schaeffler.com; dmarc=pass action=none
header.from=schaeffler.com; dkim=pass header.d=schaeffler.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=worksite.onmicrosoft.com; s=selector2-worksite-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=ZoKjAMV4cXdwpL1GOLGTlmBTe8iSFOg4x4FCtGLcKbo=;
b=DUKOinWTkWLZdvzNsQA14zbbghsVUxX6E1maLsX1sbZKhH5QqjvnFpGLUimQu3I5ah5dZqx6asWTnPWWT+hRqaqnTSBi2W2zaAu8XEtVUvXe5zUHXmhLvDRbRW8o93BHSHqBCaerYLuJXl3tsRfrVIlMUJ2exp7XNF+31M0Uy30=
From: "Lemke, Michael SF/HZA-ZI2E" <lemkemch AT schaeffler DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: possible snprintf() regression in 3.3.2
Thread-Topic: possible snprintf() regression in 3.3.2
Thread-Index: AQHX4OV+EDKuLXJjuEKEbYteLSuY76wSX08AgAAGZACAAAO2gIAAMPkA
Date: Wed, 24 Nov 2021 12:29:02 +0000
Message-ID: <VI1PR03MB6446BF0627037354C0107CEDBE619@VI1PR03MB6446.eurprd03.prod.outlook.com>
References: <7545bb24-43de-cd7d-0764-55c85f1af957 AT gmx DOT com>
<20211121001613 DOT GH10332 AT venus DOT tony DOT develop-help DOT com>
<YZtyJDXdrMzVR2lJ AT calimero DOT vinschen DOT de>
<YZuVRjYoG40cEGDV AT calimero DOT vinschen DOT de>
<20211122232302 DOT GI10332 AT venus DOT tony DOT develop-help DOT com>
<20211123173409 DOT 0db4d5ccd94501ce1b8f69ea AT nifty DOT ne DOT jp>
<YZy45cStTTgLp0gO AT calimero DOT vinschen DOT de>
<20211124124055 DOT a90e254858b66d42aca6ecef AT nifty DOT ne DOT jp>
<20211124175204 DOT ff0751fd1536dde626826dd5 AT nifty DOT ne DOT jp>
<20211124181456 DOT d4bfca4c5ba33dfe4e701fa4 AT nifty DOT ne DOT jp>
<YZ4FrdeJtPb7B04W AT calimero DOT vinschen DOT de>
In-Reply-To: <YZ4FrdeJtPb7B04W@calimero.vinschen.de>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=schaeffler.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 40302a68-314d-4157-f5f7-08d9af45ffd2
x-ms-traffictypediagnostic: VI1PR03MB4446:
x-microsoft-antispam-prvs: <VI1PR03MB444691DF1D5B40D5E4C03280BE619 AT VI1PR03MB4446 DOT eurprd03 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:1091;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: PvOYnVLei/scASKra4xm3K4VTQp0Ea5dNsfXPVvOq3g0n1MapfOyD+5jUe2EythgNhaUq6J+ZUz25c9VhezrtySAJjJ6hES+tNu1xXqiG69mVbL7LOS7igK7WQ3NuiHgwgm85FjeGudYp3tWHHuG8RjJePzKXKU7ickiHda0nVke5ecyUubuOFynsp5kxYn4Q4kEY5/l1gCrBuQx1iex9ph62chEsruOgvZ6b9pm5ZxyZMTEN7Y6dE+XAHozHJfmtH5wWUOJ5/mDtzMpqYP/FAk/h05ZPBZZPQ71qJ0TvRI0NU3sHxh256pfblMGufK0D4kn2k9XNLXuNVcxhiGROCd5kQVcCVOrfLR3Peqf2KXLOAgQpQMzBcEFjRlTBpAuBQeC/+gwIKaTwnfUzdsjfCDolv/ijSP2LlKewNDzclmKbzg/h+G8Xl3JB90qBhtftj27UbFmSeBqcshnjGY7pi8zzwpCTEl7AC3xzXpm7nmI+tCoE9zHmpeAfMOkpMRiDK5O1mS20LBEd5/AQ0PqmGnal+/1X3t3FYZA4w7qx09C1xkpwuNCJ2bJ+rhJKMBU+l+zppE0DkXSntsZn9nIcSq8d0h8GgKbk7r5sWIUgVcifXCVd1lx8k9bZ0f1W+2xFhVaQmTQDw0R+OAWP9z+2BaNmwWtW0irJ6cmj2Zd4MscxHvEEgHGSVRjLkEoD1eng1YhJHeoptT87rJ3n3TbHw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:VI1PR03MB6446.eurprd03.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(6506007)(33656002)(26005)(6916009)(508600001)(9686003)(86362001)(316002)(8676002)(186003)(38070700005)(4744005)(83380400001)(38100700002)(66446008)(66556008)(64756008)(66476007)(122000001)(55016003)(8936002)(52536014)(2906002)(53546011)(71200400001)(7696005)(76116006)(82960400001)(66946007)(5660300002);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ODRZejlwVGorU3c4TU1CS25xOWJyTmp5MEFSZFUyWWIwWEIzUnFDVjBzME1s?=
=?utf-8?B?Uy9zZ1NtcEJLR0JnSmhNLzBnc1M3MUxROHR4TGcxZlJaQXpMRHhETzd4UG1C?=
=?utf-8?B?MGNrNldCWm9MbzI3VkNpcXpnZjVJQzZsT3c3emFlQVBSTDhSWEJabC9SM2Ru?=
=?utf-8?B?VlNSM0hqSVhlQisvQk5LRjgwbDBMMWhLS1dua3Q1VGp6cE1xNi9vVnpWUU4v?=
=?utf-8?B?SzJtY2Fsc1p2cVo5MGJBUWdGdUkyVUREUTFlbVJmK3ZjUUFlOCtyM0R1aEVh?=
=?utf-8?B?KzVja3JqMDljMnQ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XYzEvdjQrMU80WDR5cm15?=
=?utf-8?B?SlYwOHBDWTF1N25pTFp3VS9RdTU1K1JJclVlVTlCT2kvYitGT09WNHVwSTl3?=
=?utf-8?Q?mvtFoHdoFfxzQnrAncXwxUM=3D?=
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR03MB6446.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 40302a68-314d-4157-f5f7-08d9af45ffd2
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2021 12:29:02.8190 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 67416604-6509-4014-9859-45e709f53d3f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Tq716o+l1DQf6ZptiI1I3giNkRVSOTlGUnQ5DcrOBEUfbC5lghchFayRk/mkGGqSp8um39ynpDCc/NiAaWiXaA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR03MB4446
X-OriginatorOrg: schaeffler.com
X-MailControlDKIMCheck: cGFzcyB3b3Jrc2l0ZS5vbm1pY3Jvc29mdC5jb20gW3Bhc3Nd
X-MailControl-OutInfo: MTYzNzc1Njk1ODpGUEtleTEucHJpdjp2yKRzhKYdk9B1Iq3oMNlwLpphn+JJ0qHtxJWYdcZ9Tcj2/9WB/raf26/nSKkP4VG/aBQXX7iUHCG1eTQ0s8OoopzFVbilT4g9VJPpV8AiBJk4IkpMOWxBPrvzlyWLHlCvyPAxgm65m7d4vN3Gl+YTBIxcEd1cBKpmhcHtB851H0bHqGKNeS/tqNjj8T1/xniprtmrOISIJcBqbV+/mefZsX8aJiWT7nzhbgnt8HqsjQfGKjdeP2tjQIkq2Be5IXufVRd8URH0xyg/1Ta/6V7da94qH+PPfbhc551VNf+Em6MQgGYHVAu/35YOGje+zNwXwV4Qg7ZPf6MC5LDmf1Je
X-Scanned-By: MailControl 44278.2116 (www.mailcontrol.com) on 10.68.0.114
X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Wednesday, November 24, 2021 10:28 AM Corinna Vinschen wrote:
> On Nov 24 18:14, Takashi Yano via Cygwin wrote:
> > On Wed, 24 Nov 2021 17:52:04 +0900
> > Takashi Yano wrote:
> > > The printed value is still something wrong...
> > > sqrt(2)*1e70 should be an integer value.
> > 
> > I mean...
> > 
> > sqrt(2)*1e70 is actually not an integer, however, double has mantissa
> > of only 52 bit. So, (double value)*(5^70*2^70) should be an integer.
> 
> The conversion is a bit inexact, I guess, but that's another problem
> of this old ldto, right?

Just in case you didn't notice: Only the first 16 digits of both of
Takashi's long numbers are correct. Floating point accuracy?

Michael

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019