Hello guys.
I have a little problem. My program reads numbers from txt file and show.
data.txt
12345,67e-09
code.cpp
...
QFile file(fileName);
QTextStream in(&file);
double textData;
QString data;
in >> data;
textData = data.toDouble();
It works. But when i change data.txt, there is a problem.
data.txt
1234567e-09
Program shows the number that is 0,00123457. I want to show 1234567 × 10^9 ( = 1234567 × 1000000000 ).
I guess The problem occur because of double variable type. How can i fix this?
↧