Skip to content

Commit

Permalink
CSV: export data with a 15-digit precision.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed May 30, 2024
1 parent 6ea0ec2 commit 5eaa5d4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void CsvDataStoreExporterWorker::run()
double voiValue = voiValues[i];

if (voi != nullptr) {
rowData += QString::number(voiValue);
rowData += QString::number(voiValue, 'g', 15);
}

bool firstRowData = true;
Expand All @@ -181,7 +181,7 @@ void CsvDataStoreExporterWorker::run()

if ( (runsIndex[j] < dataStore->size(j))
&& qFuzzyCompare(dataStore->voi()->value(runsIndex[j], j), voiValue)) {
rowData += QString::number(variableRun->value(runsIndex[j], j));
rowData += QString::number(variableRun->value(runsIndex[j], j), 'g', 15);

updateRunsIndex[j] = true;
}
Expand Down

0 comments on commit 5eaa5d4

Please sign in to comment.