Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Variable Problem

$
0
0
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?

Viewing all articles
Browse latest Browse all 18427

Trending Articles