summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/amount.h b/amount.h
index 680bd57f..9f16f305 100644
--- a/amount.h
+++ b/amount.h
@@ -107,6 +107,12 @@ class amount_t
_release();
}
+ amount_t number() const {
+ amount_t temp(*this);
+ temp.clear_commodity();
+ return temp;
+ }
+
bool has_commodity() const;
commodity_t& commodity() const;
void set_commodity(commodity_t& comm) {