mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-24 02:28:33 +02:00
Ready for beta
This commit is contained in:
@@ -399,6 +399,11 @@ QLocale Utils::getCurrencyLocale(const QString ¤cyCode) {
|
||||
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 ¤cyCode) {
|
||||
QLocale locale = getCurrencyLocale(currencyCode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user