We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8b87f0 + 6c99164 commit e930451Copy full SHA for e930451
maiaObject.cpp
@@ -27,6 +27,7 @@
27
*/
28
29
#include "maiaObject.h"
30
+#include <cfloat>
31
32
MaiaObject::MaiaObject(QObject* parent) : QObject(parent){
33
QDomImplementation::setInvalidDataPolicy(QDomImplementation::DropInvalidChars);
@@ -63,7 +64,7 @@ QDomElement MaiaObject::toXml(QVariant arg) {
63
64
} case QVariant::Double: {
65
66
QDomElement tagDouble = doc.createElement("double");
- QDomText textDouble = doc.createTextNode(QString::number(arg.toDouble()));
67
+ QDomText textDouble = doc.createTextNode(QString::number(arg.toDouble(), 'g', DBL_DIG));
68
69
tagValue.appendChild(tagDouble);
70
tagDouble.appendChild(textDouble);
0 commit comments