Here is a random double number:0.123456e+13
I wanna display without exponential like this "0.123456"
QString s = "0.123456e+13";
double d = s.toDouble();
qDebug() << d; //0.123456e+13
//I try this solution that I search on the internet but it didn't work
double d2 = QStirng::number(d,'g',6).toDouble();
qDebug() << d2; //0.123456e+13
0.123456e+13->0.123456 display in qt
Assuming you meant to display
0.123456e+13as1234560000000, not0.123456, then you can useQt::fixed(just like how you would usestd::fixed):