summaryrefslogtreecommitdiff
path: root/src/balance.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/balance.h')
-rw-r--r--src/balance.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/balance.h b/src/balance.h
index 8f565e78..eec86576 100644
--- a/src/balance.h
+++ b/src/balance.h
@@ -311,6 +311,8 @@ public:
return temp;
}
+#ifdef INTEGER_MATH
+
balance_t round() const {
balance_t temp;
foreach (const amounts_map::value_type& pair, amounts)
@@ -335,6 +337,8 @@ public:
return *this;
}
+#endif // INTEGER_MATH
+
balance_t unround() const {
balance_t temp;
foreach (const amounts_map::value_type& pair, amounts)