summaryrefslogtreecommitdiff
path: root/src/gnucash.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnucash.cc')
-rw-r--r--src/gnucash.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gnucash.cc b/src/gnucash.cc
index a1fa40a3..91217699 100644
--- a/src/gnucash.cc
+++ b/src/gnucash.cc
@@ -187,7 +187,11 @@ static void endElement(void *, const char *name)
if (default_commodity) {
curr_quant.set_commodity(*default_commodity);
+#ifdef INTEGER_MATH
value = curr_quant.round();
+#else
+ value = curr_quant;
+#endif
if (curr_value.commodity() == *default_commodity)
curr_value = value;