diff --git a/include/eible/ExportDsv.h b/include/eible/ExportDsv.h index 90b1504..f18d862 100644 --- a/include/eible/ExportDsv.h +++ b/include/eible/ExportDsv.h @@ -62,4 +62,6 @@ class EIBLE_EXPORT ExportDsv : public ExportData Qt::DateFormat qtDateFormat_{Qt::ISODate}; const char separator_; + + const int precision_{2}; }; diff --git a/src/ExportDsv.cpp b/src/ExportDsv.cpp index 748b425..276a8c7 100644 --- a/src/ExportDsv.cpp +++ b/src/ExportDsv.cpp @@ -64,7 +64,7 @@ void ExportDsv::variantToString(const QVariant& variant, case QMetaType::Int: { destinationArray.append( - locale_.toString(variant.toDouble(), 'f', 2).toUtf8()); + locale_.toString(variant.toDouble(), 'f', precision_).toUtf8()); break; }