Subject: Re: scanf misses NAN and INF (patch to review)
To: Emmanuel Dreyfus <>
From: Thor Lancelot Simon <>
List: tech-userlevel
Date: 04/04/2007 00:25:41
On Wed, Apr 04, 2007 at 06:20:49AM +0200, Emmanuel Dreyfus wrote:
> Matt Thomas <> wrote:
> > that should be const char man, inf.
> Right.
> > Not everything has NaN or Inf.
> What do you mean? The case where the object is not a float? I'm in case
> CT_FLOAT, so this should be adressed...

No.  Not all floating-point formats have "not a number" or IEEE-style
infinities, and we run on at least two machines where there is no
floating point format that does, plus at least one where one of the
available floating points doesn't (though we don't support it).