Browse Source

Merge pull request #5388

1cf23f6 Update the intent on SI-style separators. (21E14)
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
b248a38aa5
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/qt/bitcoinunits.cpp

6
src/qt/bitcoinunits.cpp

@ -106,10 +106,8 @@ QString BitcoinUnits::format(int unit, const CAmount& nIn, bool fPlus, Separator
QString quotient_str = QString::number(quotient); QString quotient_str = QString::number(quotient);
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0'); QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
// Use SI-stule separators as these are locale indendent and can't be // Use SI-style thin space separators as these are locale independent and can't be
// confused with the decimal marker. Rule is to use a thin space every // confused with the decimal marker.
// three digits on *both* sides of the decimal point - but only if there
// are five or more digits
QChar thin_sp(THIN_SP_CP); QChar thin_sp(THIN_SP_CP);
int q_size = quotient_str.size(); int q_size = quotient_str.size();
if (separators == separatorAlways || (separators == separatorStandard && q_size > 4)) if (separators == separatorAlways || (separators == separatorStandard && q_size > 4))

Loading…
Cancel
Save