delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/01/04:57:48

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3E895646.41EBBF5C@phekda.freeserve.co.uk>
Date: Tue, 01 Apr 2003 10:05:10 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: _doprnt and NaNs
References: <3E888DDF DOT 21E2114F AT phekda DOT freeserve DOT co DOT uk> <8011-Mon31Mar2003231810+0300-eliz AT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Eli Zaretskii wrote:
[snip]
> If indeed there's no format specifier for a float (I don't have time
> to dig into C9x, but I thought there was something like %hf, no?),

I was hoping for '%hf', but there isn't one. 'L' is the only conversion width
specifier for floating-point types. It seems like a strange omission to me.
Maybe it'll be in C09 (C2009)?

> then it would at least be nice to be able to distinguish between a
> double and a long double NaN.

That's possible.

> So how about some code that would detect NaNs early on, before they
> are converted to a long double?

Yep, I'll add that.

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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