T
T
totsamiyya2017-10-17 12:20:26
Qt
totsamiyya, 2017-10-17 12:20:26

When using the QByteArray::number function, two numbers are displayed instead of one. Why?

Usage example:

qDebug()<<QByteArray::number(value,'g',4);//value - переменная типа double
// В qDebug будет двойной вывод. Например, при value = 0.5, в qdebug - 0.5 0.5

When using other outputs, for example, in textBrowser, the situation does not change.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question