www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2013/03/06/02:54:59

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:x-received:in-reply-to:references:date:message-id
:subject:from:to:content-type;
bh=RH8RfmhcN0mTkvnXjls35FfJDqP4+ZL8lqiS8Kigatg=;
b=dL2pPo6xMJ19f3qyu+vkQmWQRbYogpNNwj6Ik/x8z1f53Z65O1zkpOAOa5FfE4uLVN
M1fEy1ezyZdMXnmSYalYISPGoNyi4ZuEUWI5/TsxyhEvNHiT3pDH92GV0NwEqpnDgsbp
dYKZ/DD4/aiF6Bk8Mip1YRJvIN5h8L+VB+cna1dfiHhsBQ5z5u4+StJrFjYsL94nPzNj
u44PtEOpxPWuJTNeM2hkbSwC8BaKuXxIag5QUPaDCl3FSpfdj/jJ+h/lRnB2BKSF105a
5yDHBUST/pcrVDZ9kCwM+mm6awVXrekAd17jWuHbsvqneo9nsFY76LkbHmeclJ/a0vy9
gdZg==
MIME-Version: 1.0
X-Received: by 10.60.20.225 with SMTP id q1mr21283207oee.31.1362556146137;
Tue, 05 Mar 2013 23:49:06 -0800 (PST)
In-Reply-To: <83y5e11pn7.fsf@gnu.org>
References: <51364BCD DOT 1030807 AT gmx DOT de>
<83y5e11pn7 DOT fsf AT gnu DOT org>
Date: Wed, 6 Mar 2013 01:49:06 -0600
Message-ID: <CAA-ihx82wqKzkqUvnLdSLHpvy5qhwS6gbOP=Tf3GBJgY53LM-w@mail.gmail.com>
Subject: Re: Printing sign of NaN.
From: Rugxulo <rugxulo AT gmail DOT com>
To: djgpp-workers AT delorie DOT com
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi,

On Tue, Mar 5, 2013 at 3:51 PM, Eli Zaretskii <eliz AT gnu DOT org> wrote:
>> Date: Tue, 05 Mar 2013 20:47:25 +0100
>> From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
>>
>> ONFY while I was testing trunc() I noted that printf did not print the
>> sign of NaN.  The committed small patch  below fixes the issue.
>
> Isn't NaN always negative?  Do you succeed in printing both negative
> and positive NaN with this patch?

No idea, but here's what Wikipedia says:

http://en.wikipedia.org/wiki/NaN

"
In IEEE 754 standard-conforming floating point storage formats, NaNs
are identified by specific, pre-defined bit patterns unique to NaNs.
The sign bit does not matter. Binary format NaNs are represented with
the exponential field filled with ones (like infinity values), and
some non-zero number in the significand (to make them distinct from
infinity values).
"

- Raw text -


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