Date: Wed, 20 Jan 1999 09:05:52 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Stephen L Moshier cc: djgpp-workers AT delorie DOT com Subject: Re: Bug when printing long doubles In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com On Tue, 19 Jan 1999, Stephen L Moshier wrote: > Yes, IEEE says for single and double precision a NaN has the maximum > exponent value and any nonzero fraction. Exactly. And the bit pattern in the example we had didn't match this definition. > Extended formats are required to have at least one quiet and one > signaling NaN, but the bit patterns are not specified. IEEE further says > "An implementation may also reserve some bit strings for purposes > beyond the scope of this standard" (IEEE 754-1985 para 3.3). I think, ultimately, we must be compatible with the processor that runs the code (without violating standards, of course). For this reason, it is IMHO wrong to print "NaN" for something the processor doesn't consider as such. We need to find a different string.