diff options
Diffstat (limited to 'amount.cc')
-rw-r--r-- | amount.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -620,6 +620,9 @@ std::string amount_t::quantity_string() const } mpz_set(rquotient, remainder); + if (mpz_sgn(quotient) == 0 && mpz_sgn(rquotient) == 0) + return "0"; + if (negative) out << "-"; |