I want to keep all precision of double number. I try to use this to keep it in text file.
printf("%g", double_value);
And I want to convert it to double
double_value = atof(string_read_from_file);
I found it lost precision when I use printf, what's the correct method?