From 640279c65d638d777852a291d674c342a9b8115e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 22 Feb 2009 02:11:32 -0400 Subject: [PATCH] Allow balances to be rounded and unrounded --- src/value.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/value.cc b/src/value.cc index ad4047cd..7162a610 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1223,6 +1223,8 @@ value_t value_t::rounded() const return *this; case AMOUNT: return as_amount().rounded(); + case BALANCE: + return as_balance().rounded(); default: break; } @@ -1238,6 +1240,8 @@ value_t value_t::unrounded() const return *this; case AMOUNT: return as_amount().unrounded(); + case BALANCE: + return as_balance().unrounded(); default: break; }