Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.0.0 Beta 2, 5.0.0 RC 1
-
None
-
57acf1b46ca4bb670f4bf1fe3807dfa91edb6248
Description
Default number precision in serialization QJsonDocument to text is only 6.
It mean's every number >= 10^6 is writed in exponential form with precision lost.
I can't see any reason for such limit. It can mess up various IDs for example.
Problem is in QJsonPrivate::Writer class.
It uses QByteArray::number function with default parameters and default precision is only 6...
Attachments
Issue Links
- relates to
-
QTBUG-31926 Number precision in QJsonDocument.toJson() is still not enough for double
- Closed
For Gerrit Dashboard: QTBUG-28467 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
56072,2 | QtCore: fix the number precision in QJsonDocument.toJson() | stable | qt/qtbase | Status: MERGED | +2 | 0 |