r17539 - gnucash/branches/2.2/src/app-utils - [r17457, r17533] Don't round values that will be displayed as expressions

Andreas Köhler andi5 at cvs.gnucash.org
Wed Sep 17 11:12:56 EDT 2008


Author: andi5
Date: 2008-09-17 11:12:56 -0400 (Wed, 17 Sep 2008)
New Revision: 17539
Trac: http://svn.gnucash.org/trac/changeset/17539

Modified:
   gnucash/branches/2.2/src/app-utils/gnc-ui-util.c
Log:
[r17457,r17533] Don't round values that will be displayed as expressions

Save some space in fractional displays by, for example, showing "1 + 1/8"
instead of "1 + 1 / 8".  Simplify fractional display of values less than 1 by,
for example, showing "1/3" instead of "0 + 1 / 3".  When printing negative
quotients, use a minus between the integer and fraction part, e.g. "-1 - 1/3"
instead of "-1 + 1/3" for -4/3.

Committed by cedayiv.



More information about the gnucash-patches mailing list