problem with number of decimal places in 'shares' field

Matthew Hollingsworth mwh@swbell.net
Fri, 06 Dec 2002 23:21:08 -0600


I have just started using GnuCash and really like it. I'm using version
1.6.6, and have just run into a problem, though, when trying to enter
some mutual fund transactions. I was wondering if I'm missing something
or if anyone else has encountered this.

The problem is that the register is forcing 2 decimal places for the
number of shares in the transaction. I've setup the commodity to trade
in a fraction of 1/1000, and it does not seem to make a difference. In
fact, I change the fraction to 1/10, and the register still forces 2
decimal places.I've ensured that the account is using the correct
commodity. I enter some number in the shares field, e.g. 25.234, and as
soon as I tab out of the field, it is rounded to two decimal places,
e.g. 25.23.

Interestingly, I cannot reproduce this behavior when I create a new,
blank accounts file and attempt the same thing. The number of decimal
places in the shares corresponds to what is set in the commodity
definition. I'm wondering if something in my accounts file is corrupted,
or if I've missed a setting somewhere. I also opened a bug in bugzilla
on this earlier this week:

http://bugzilla.gnome.org/show_bug.cgi?id=100295

Thanks,

Matt Hollingsworth