#include <stdlib.h>
#include <stdio.h>

int _tmain()
{
char buf[64];
float fval;

strcpy(buf, "123.234");
printf("buf = %s\n", buf);

fval = atof(buf);
printf("%0.3f\n", fval);


return 0;
}