|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-09 20:54:58
|
On Thursday 09 June 2005 09:12 am, Robert Hart wrote:
> On Thu, 2005-06-09 at 21:18 +0800, Hans-Bernhard Br=C3=B6ker wrote:
> >=20
> > Well, here's an ancient comment right taken directly from datafile.c:
> >=20
> > /* cannot trust strtod - eg strtod("-",&p) */
I cannot make any sense of that comment either. ANSI says, in regard
to scanf with %f
"The format of the token should be that expected by the function
strtod for a floating-point number that uses decimal notation".
So there doesn't seem to be much room for scanf and strtod to parse
numbers differently.
=2D-=20
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|