Mail Archives: cygwin/1999/01/03/04:55:10
Here is my program:
int main()
{
double val = strtod("3.123", 0);
printf("TEST: %g %g\n", 3.123, val);
return 0;
}
Here are the results:
H:\>gcc test.c -o test.exe
H:\>test
TEST: 3.123 3123
The results I WANTED would have 3.123 both times, and this is the
behavior documented.
This same behavior is exhibited by atof()... This is a bug, I think.
Please send any replies to my actual email address
(mailto:dobes AT mindless DOT com) because I am not subscribed to this mailing
list...
Thanks
Dobes
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -