I have a file with number readings (example 5.513208E-05 / 1.146383E-05) I read the file and store the entries in a temporary string. After that I convert the temporary string into float variable (which I store in an Multi Dimensional Array). I use the code below to convert.
getline(infile, temporary_string, ',');
Array[i][0] = ::atof(temporary_string.c_str());
getline(infile, temporary_string);
Array[i][1] = ::atof(temporary_string.c_str());
The problem is that when I print the floats to the screen
5.51321e-05 1.14638e-05 instead of 5.513208E-05 1.146383E-05
How can I get the precise numbers stored ???