Browse Source

Use "NaN" for nan display values in Quantity.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
58a9346309
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Quantity.cpp

+ 1
- 1
src/Quantity.cpp View File

@@ -26,7 +26,7 @@ std::string Quantity::getDisplayValueString() {
else if (v == -INFINITY)
return "-∞";
else if (std::isnan(v))
return "?";
return "NaN";
return string::f("%.*g", getDisplayPrecision(), math::normalizeZero(v));
}



Loading…
Cancel
Save