Mail Archives: djgpp-workers/2003/04/22/17:48:29
Hello.
Martin Stromberg wrote:
>
> Richard said:
> > ams AT ludd DOT luth DOT se wrote:
> > > 1. Note that the final paragraph in Return value for strtold is
> > > missing, in case you notice. It's because that isn't implemented.
> > > That's how it was.
> >
> > You mean the paragraph about the function returning HUGE_VALL and errno ==
> > ERANGE, when the number is too big, right? Perhaps we should add that
> > paragraph, since:
> >
> > * we may return HUGE_VALL, etc. at some point in the future;
> > * the standard specifies that we can return HUGE_VALL, etc.;
> > * and the programmer using the library should be aware that we can return
> > HUGE_VALL, etc.
>
> We should yes. But not until the code does so (or vice versa), IMHO.
[snip]
BTW why don't we check the range?
Surely we could check for things like the exponent isn't too big?
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -