Skip to content

Commit 2e4fee2

Browse files
committed
Show bitcoin quantities with full precision, even in the presence of trailing zeros
1 parent 7007402 commit 2e4fee2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/qt/bitcoinunits.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,6 @@ QString BitcoinUnits::format(int unit, qint64 n, bool fPlus, SeparatorStyle sepa
114114
QString quotient_str = QString::number(quotient);
115115
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
116116

117-
// Right-trim excess zeros after the decimal point
118-
int nTrim = 0;
119-
for (int i = remainder_str.size()-1; i>=2 && (remainder_str.at(i) == '0'); --i)
120-
++nTrim;
121-
remainder_str.chop(nTrim);
122-
if (fAlign)
123-
remainder_str.append(QString(QChar(FIGURE_SP_CP)).repeated(nTrim));
124-
125117
// Use SI-stule separators as these are locale indendent and can't be
126118
// confused with the decimal marker. Rule is to use a thin space every
127119
// three digits on *both* sides of the decimal point - but only if there

0 commit comments

Comments
 (0)