summaryrefslogtreecommitdiff
path: root/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'value.h')
-rw-r--r--value.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/value.h b/value.h
index b9565430..bac12ec5 100644
--- a/value.h
+++ b/value.h
@@ -316,6 +316,14 @@ class value_t
value_t& add(const amount_t& amount, const amount_t * cost = NULL);
value_t value(const std::time_t moment) const;
+ void reduce();
+
+ value_t reduced() const {
+ value_t temp(*this);
+ temp.reduce();
+ return temp;
+ }
+
void round();
value_t unround() const;
};