From 5766befbb760ee3bfb1d8defc3dc94ee04a7c1aa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 4 Mar 2006 15:32:47 +0000 Subject: *** no comment *** --- amount.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'amount.cc') diff --git a/amount.cc b/amount.cc index b2588fc2..1fe2ecdd 100644 --- a/amount.cc +++ b/amount.cc @@ -812,14 +812,10 @@ std::ostream& operator<<(std::ostream& _out, const amount_t& amt) if (precision) { 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.fill('0'); + char * p = mpz_get_str(NULL, 10, rquotient); out << p; std::free(p); } -- cgit v1.2.3