summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 0a751941..1157f3e7 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -657,15 +657,13 @@ void annotation_t::parse(std::istream& in)
temp.parse(buf, amount_t::PARSE_NO_MIGRATE);
temp.in_place_reduce();
-#ifdef INTEGER_MATH
// Since this price will maintain its own precision, make sure
// it is at least as large as the base commodity, since the user
// may have only specified {$1} or something similar.
if (temp.has_commodity() &&
temp.precision() > temp.commodity().precision())
- temp = temp.round(); // no need to retain individual precision
-#endif
+ temp = temp.rounded(); // no need to retain individual precision
price = temp;
}