delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/24/04:29:26

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 544943857C53
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1637746165;
bh=sxFNVxiin2HKmYPCQ1s/qzSOSz3Wku/fqJuaCdma6cA=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=eSYKradJNwWizL/vLy9lPuBpkVk75l0iuzk9ceB1R+8NhSmNiFLeP/NiEIR2wfvdy
BRVZnkiVlpQftDhZ6i/62CQWTt+r8KaTKl4PGracl6dOx7NeKadhpwah0RV0EhsnOD
LSbweFQELNlrQPRF+/fyLsO8kSYKmCZ5wsuNLRSM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 091B9385840E
Date: Wed, 24 Nov 2021 10:28:13 +0100
To: cygwin AT cygwin DOT com
Subject: Re: possible snprintf() regression in 3.3.2
Message-ID: <YZ4FrdeJtPb7B04W@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT 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>
MIME-Version: 1.0
In-Reply-To: <20211124181456.d4bfca4c5ba33dfe4e701fa4@nifty.ne.jp>
X-Provags-ID: V03:K1:q643Q9ua2FCExNEZJ+LJk07ZLMqipujfRjD7pDbEih3nRhjfhoL
QOA7B9xU2mzZgVlbIFpuPL9jsR1COzoknWD7GAE276fySl54DKCli+UrrVi4F/PsFU1FoCL
s4yO9X7cBSd6Qpr40hfTH7HCEjqyKyqSw+pCYr5tn6YAZrMD5Vpjf69PBPHKpWx8fc0C23Y
jzdr7zxtJOHmlnXmIZBVg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:QbyM8YmuuLY=:RqPjYhCgM5aQUw6mVxM4g4
XjG2rqpoSidtoACOm3qKPiOIMp87W7ZyhPTjZeENZ7hRMmRZVOEE9xLvqnsjlTDP2o1MGjF2w
kCPwLunbYw9c4KTIG2w00unZEtVc8jtOLVHreGb6vNoV2wOFbZBQxBq/cY+/8MMB5cKDonEuw
iJF+KgyeKiHzg0CvGS55jxvE/9pPmHxPSHPTEsoZmjIkFSjSbwphdOyZoWMeuu0q5CuXutt17
55fErbQpIQDBgXI94aD/M+AJb84mp984u49j5L1lqKZE8ohMSRcwo1x8bPe1mlNnC2qkXPFq4
K7xGtfwVmh32f4qbjahqnDCv4+cXWNfrLh7oooofK9k803nAfQqzDegrOOfiP4h2FSpwx50k3
rcHPvz1prl2zardseUeCf9pPcNsRq8MASZ+AVaVKqZnllq/1cm07bIlBxXMqEdoa+EiA2+rz2
mr7C0doYpHFrKN0IP5Rz3j+ulKWm9FnUzdyNfFLTB97MhJlszOn9nwS5SuTrnvdZEdQjUIK5L
fS/leNcVMG0o3VKq1XsSGyzIFuUh5eyUzuIoOyJmW4cJNODymgpanQZjSbBceAyu9Elo1bSGb
W77cuWq8a0KQBR8EIpreBAUhVbDYclbRhSnXtxTHFZUL0GkE/CPFbqJ+p9isz3KEFncr6MsPz
J1Kn0k42KxUJirde431K+rwlL7elDAoIetosOKkAkqHR5VdtBPxnsknwIkIcHKdU/CeDyAzQ9
3MXE28tJtVkrGKR8
X-Spam-Status: No, score=-98.9 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS,
KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,
SPF_NEUTRAL, 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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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?


Corinna

-- 
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