How to show big numbers as the number NOT scientific notation?
-
I am using:
qDebug() << QString("stale_data_t::stale dblDown[%1] dblEpoch[%2] dblAge[%3] strToolTip[%4]") .arg(QString::number(pobjUDT->m_dblDown)) .arg(QString::number(pobjUDT->m_dblEpoch)) .arg(QString::number(dblAge)) .arg(strToolTip);In my application , the result is something like:
"stale_data_t::stale dblDown[1.66963e+12] dblEpoch[1.66963e+12] dblAge[6620] strToolTip[IF down: 6.620 seconds]" ../staleData.C: 287For dblDown and dblEpoch I want to see the large number not the scientific notation, how do I do this ?
-
I relly thought you're long enough here to know where the documentation is.
-
I am using:
qDebug() << QString("stale_data_t::stale dblDown[%1] dblEpoch[%2] dblAge[%3] strToolTip[%4]") .arg(QString::number(pobjUDT->m_dblDown)) .arg(QString::number(pobjUDT->m_dblEpoch)) .arg(QString::number(dblAge)) .arg(strToolTip);In my application , the result is something like:
"stale_data_t::stale dblDown[1.66963e+12] dblEpoch[1.66963e+12] dblAge[6620] strToolTip[IF down: 6.620 seconds]" ../staleData.C: 287For dblDown and dblEpoch I want to see the large number not the scientific notation, how do I do this ?
-
I relly thought you're long enough here to know where the documentation is.
@Christian-Ehrlicher , thank you, perfect:
qDebug() << QString("stale_data_t::stale dblDown[%1] dblEpoch[%2] dblAge[%3] strToolTip[%4]") .arg(QString::number(pobjUDT->m_dblDown, 'f', 0)) .arg(QString::number(pobjUDT->m_dblEpoch, 'f', 0)) .arg(QString::number(dblAge, 'f', 0)) .arg(strToolTip);Result:
"stale_data_t::stale dblDown[1669632401645] dblEpoch[1669632401645] dblAge[1370] strToolTip[IF down: 1.370 seconds]" ../staleData.C: 287