Commit 954b4c5b1fd81265cd258903283c5946a94eaa79

Authored by Benjamin Renard
1 parent 06bc83c5

Fix floating field width with scientific format (#6566)

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/ParamOutputImpl/Download/FileWriterASCIIAbstract.cc
... ... @@ -546,6 +546,9 @@ bool FileWriterASCIIAbstract::writeFloatData(std::string paramId, int varIndex,
546 546 crtFile->setf(std::ios::right, std::ios::adjustfield);
547 547 crtFile->precision(3);
548 548 }
  549 + else {
  550 + crtFile->width(12);
  551 + }
549 552 if (isNAN(data))
550 553 (*crtFile) << getNanString();
551 554 else
... ...