From f1795e628b0027aed2dc344c757167887c337bc1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 27 Feb 2009 03:28:14 -0400 Subject: Fixed bugs relating to sign and rounding of costs --- src/textual.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/textual.cc') diff --git a/src/textual.cc b/src/textual.cc index a804fb1c..b3294d99 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -954,6 +954,8 @@ post_t * instance_t::parse_post(char * line, if (post->cost->sign() < 0) throw parse_error(_("A posting's cost may not be negative")); + post->cost->in_place_unround(); + if (per_unit) *post->cost *= post->amount; -- cgit v1.2.3