Ready for beta

This commit is contained in:
dsc
2021-04-14 22:00:25 +02:00
parent c0cb90bf79
commit 8b1250030b
41 changed files with 948 additions and 315 deletions
+5
View File
@@ -399,6 +399,11 @@ QLocale Utils::getCurrencyLocale(const QString &currencyCode) {
return locale;
}
double Utils::roundUp(double value, int decimal_places) {
const double multiplier = std::pow(10.0, decimal_places);
return std::ceil(value * multiplier) / multiplier;
}
QString Utils::amountToCurrencyString(double amount, const QString &currencyCode) {
QLocale locale = getCurrencyLocale(currencyCode);