Allow balances to be rounded and unrounded

This commit is contained in:
John Wiegley 2009-02-22 02:11:32 -04:00
parent 3e543d187c
commit 640279c65d

View file

@ -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;
}