diff --git a/src/core/utils.cpp b/src/core/utils.cpp index 7a2a1df..da33ada 100644 --- a/src/core/utils.cpp +++ b/src/core/utils.cpp @@ -13,9 +13,9 @@ std::string formatCentAsEuroString(const int cent, int width) currStream << std::right << std::setw(width) << std::showbase << std::put_money(cent, false); } catch (std::runtime_error& err) { - currStream << std::fixed << std::setw(width - 2) << std::setprecision(2) << cent / 100.0L + currStream << std::fixed << std::setw(width >= 4 ? width - 4 : width) << std::setprecision(2) << cent / 100.0L << " €"; } return currStream.str(); -} \ No newline at end of file +}