Browse Source

Show 4 digits of precision to account for large differences in exchange rates in all supported local currencies

pull/140/head
Duke Leto 4 years ago
parent
commit
698e106f5b
  1. 2
      src/settings.cpp

2
src/settings.cpp

@ -281,7 +281,7 @@ void Settings::saveRestore(QDialog* d) {
QString Settings::getUSDFormat(double bal) {
//TODO: respect current locale!
return QLocale(QLocale::English).toString(bal * Settings::getInstance()->getZECPrice(), 'f', 2) + " " + QString::fromStdString(Settings::getInstance()->get_currency_name());
return QLocale(QLocale::English).toString(bal * Settings::getInstance()->getZECPrice(), 'f', 4) + " " + QString::fromStdString(Settings::getInstance()->get_currency_name());
}
QString Settings::getDecimalString(double amt) {

Loading…
Cancel
Save