diff --git a/src/Quantity.cpp b/src/Quantity.cpp index 9782e531..25c82bed 100644 --- a/src/Quantity.cpp +++ b/src/Quantity.cpp @@ -21,11 +21,7 @@ int Quantity::getDisplayPrecision() { std::string Quantity::getDisplayValueString() { float v = getDisplayValue(); - if (v == INFINITY) - return "∞"; - else if (v == -INFINITY) - return "-∞"; - else if (std::isnan(v)) + if (std::isnan(v)) return "NaN"; return string::f("%.*g", getDisplayPrecision(), math::normalizeZero(v)); }