summaryrefslogtreecommitdiff
path: root/src/chain.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 03:04:05 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 03:04:05 -0400
commitc49b98fc4c307a2d08161cebafb348b935c6fcb5 (patch)
tree02171b10ad660778447058649b17069108165298 /src/chain.cc
parentc57c85c92f352acd6eefa309344dae7f98cf7f31 (diff)
downloadfork-ledger-c49b98fc4c307a2d08161cebafb348b935c6fcb5.tar.gz
fork-ledger-c49b98fc4c307a2d08161cebafb348b935c6fcb5.tar.bz2
fork-ledger-c49b98fc4c307a2d08161cebafb348b935c6fcb5.zip
Added an --unround option, to show full precision
Diffstat (limited to 'src/chain.cc')
-rw-r--r--src/chain.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/chain.cc b/src/chain.cc
index d33742a5..9155d4fa 100644
--- a/src/chain.cc
+++ b/src/chain.cc
@@ -93,6 +93,10 @@ post_handler_ptr chain_post_handlers(report_t& report,
handler.reset(new calc_posts(handler, expr));
}
+ // unround_posts will unround the amounts in all postings
+ if (report.HANDLED(unround))
+ handler.reset(new unround_posts(handler));
+
// filter_posts will only pass through posts matching the
// `secondary_predicate'.
if (report.HANDLED(only_)) {