How to read D exponential notation

Hi! i’ve a problem reading an external file in D+ exponential notation on root. Are there some tips to convert in E+ or have I to do manually from txt editor?

You could read these values as strings, change “D” into “E” and then use std::stod or atof.

i don’t know how to do this. I read a file in TGraph selecting the columns I want to graph (with %*lg and so on) and i don’t know if is possible to change the exp notation from D to E at this point.

In this case, it’s better to fix it in the data file (e.g., you can use “sed”),

Actually, I once reported a similar problem: TTree::ReadFile problems with CSV files