Rounding in GnuCash 2.4.13

Guido Flohr guido.flohr at imperia.bg
Wed Sep 11 09:43:59 EDT 2013


Hi,

Am Mittwoch, den 11.09.2013, 04:19 -0700 schrieb rsbrux:
> My principal currency is Swiss Francs (CHF or SFr.).  Since a CHF 0.01 coin
> costs more than its face value, it is customary in Switzerland to round
> everything to the nearest CHF 0.05.  The easiest way to handle this in
> GnuCash would be to set each CHF account to a "Smallest fraction" of 1/20. 
> According to section 2.4.1 of the  GnuCash Design Document
> <http://code.neil.williamsleesmill.me.uk/texi/gnucash-design_4.html>  , this
> would appear to be possible, but in the v2.4.13 GUI this is a fixed dropdown
> list containing only powers of 10 (1/10, 1/100).
> Is there some configuration file I can edit to add 1/20 to this list?

The list only contains powers of 10 because this is enforced by the
decimal system.  If you pick 1/100, your values will be displayed with
two digital digits.  1/20 does not make sense in that context.

The list comes from an (xml) file "account.glade"; not exactly a
configuration file but a definition file for the graphical user
interface.  You can add 1/20 to the list there, but it doesn't help you.
Gnucash silently ignores the invalid input, when you try to select it.

Wouldn't it be the correct solution to account these rounding "errors"
as an extraordinary expense or income?

Guido
-- 
Cantanea EOOD
ul. Knyaz Boris I No. 86
BG-1000 Sofia



More information about the gnucash-user mailing list