|
-
October 21st, 2006, 04:53 AM
#1
atof error
well what is wrong with this piece of code ?
#include <stdio.h>
main()
{
double input;
char mystring[50]="143.01";
printf ("%s \n",mystring);
input=atof(mystring);
printf("%f",input);
}
the last printf command is not printing the value 143.01
what is wrong over here ?
--------------------------------------------------------------------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|