Skip to content

Commit

Permalink
When formatting as Z, and no precision is given, do not force to 1, l…
Browse files Browse the repository at this point in the history
…et fmt default it
  • Loading branch information
jmarrec committed Feb 22, 2022
1 parent 7031e07 commit 912fd06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EnergyPlus/IOFiles.hh
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,9 @@ public:
if (specs_.precision > 1) {
// reduce the precision to get rounding behavior
--specs_.precision;
} else {
} else if (specs_.precision != -1) {
// We need AT LEAST one in precision so we capture a '.' below
// If specs_.precision is -1, we don't need to do anything, keep the fmt defaults which are sane
initialPrecisionWas1 = true;
specs_.precision = 1;
++specs_.width;
Expand Down

5 comments on commit 912fd06

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9000_WriteReportIntegerData (jmarrec) - Win64-Windows-10-VisualStudio-16: OK (2462 of 2462 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9000_WriteReportIntegerData (jmarrec) - x86_64-MacOS-10.15-clang-11.0.0: OK (3226 of 3226 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9000_WriteReportIntegerData (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5: OK (3267 of 3267 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9000_WriteReportIntegerData (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-UnitTestsCoverage-Debug: OK (1741 of 1741 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2b
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9000_WriteReportIntegerData (jmarrec) - x86_64-Linux-Ubuntu-18.04-gcc-7.5-IntegrationCoverage-Debug: OK (746 of 746 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

Please sign in to comment.