Search code examples
c++qtlong-double

Output long double to console


I tried to output a long double to the console directly using qDebug() and indirectly via QString::number() but both do not accept long double.

Is it true that there is no easy way of printing a long double floating point number to the console using Qt? Why?!


Solution

  • There's no overarching reason. At least as of Qt 5.6, nobody bothered to implement it. That's all.