*** no comment ***
This commit is contained in:
parent
687eaefc37
commit
5766befbb7
1 changed files with 1 additions and 5 deletions
|
|
@ -812,14 +812,10 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt)
|
||||||
if (precision) {
|
if (precision) {
|
||||||
out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
|
out << ((comm.flags & COMMODITY_STYLE_EUROPEAN) ? ',' : '.');
|
||||||
|
|
||||||
char * p = mpz_get_str(NULL, 10, rquotient);
|
|
||||||
int len = std::strlen(p);
|
|
||||||
if (len < precision)
|
|
||||||
precision = len < comm.precision() ? comm.precision() : len;
|
|
||||||
|
|
||||||
out.width(precision);
|
out.width(precision);
|
||||||
out.fill('0');
|
out.fill('0');
|
||||||
|
|
||||||
|
char * p = mpz_get_str(NULL, 10, rquotient);
|
||||||
out << p;
|
out << p;
|
||||||
std::free(p);
|
std::free(p);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue