I would like to keep all digits as they are used for direct comparisons rather than calculations.
** notice that -18.6 etc in column 2 converts just fine. Same way used in col 3,4,5 but it rounds.
If you "#include ", both “strtod” and “atof” return a “double” value:
double strtod(const char *nptr, char **endptr);
double atof(const char *nptr);
(See “man strtod” and “man atof”.)
BTW. In your “ReadData.C”, you are missing something like “Double_t val;” (and “continue;// exit if file not found” should be changed into “return;// exit if file not found”). Try to precompile your macro using (inspect all reported warnings and errors):
root [0] .L ReadData.C++
===================
Does NOT work with ROOT. WHY???
I use interpreter, I do not usually want to compile. The above suggestion about #include did not do me any good.