Strange completion behavior
Derek Atkins
warlord at MIT.EDU
Sat May 15 10:30:38 EDT 2004
The "price" is calculated, not stored, so it's not really "fixed" per
se. The only values that are stored are the #Shares and the Buy/Sell
Value. The price is computed on-the-fly as Buy/Shares (or
Sell/Shares).
I can see what you're getting, but I don't understand it either. If I
go in and modify it a second time I can get it to be 0.0417 shares at
187.05, for 7.80, which is certainly closer.
You might need to modify your account (or commodity) to accept a
larger significant digit calculation. You might also want to file a
bug report about the initial math, because it shouldn't round to 0.04.
-derek
Christopher Stawarz <cstawarz at yahoo.com> writes:
> Hi,
>
> I just started using GnuCash (version 1.8.9 on Debian
> testing), and I'm really puzzled at how it's
> completing some transactions that I enter in the
> register window. Here's what's happening:
>
> I'm trying to enter a share purchase into a mutual
> fund account via the account register. I enter the
> date, the name of the parent account (of type "Bank")
> in the "Transfer" column, the share price in the
> "Price" column, and the amount I'm investing in the
> "Buy" column. I then hit enter, expecting that the
> "Shares" column will be calculated as Buy/Price.
>
> The numbers I enter are
>
> Price = 187.1172
> Buy = 7.80
>
> So when I press "Enter", I expect to see the
> transaction created with the Price and Buy values I
> entered, and Shares set to 0.0417 (+/- a few decimal
> places). Instead, the recorded values are
>
> Shares = 0.04
> Price = 195
> Buy = 7.80
>
> While these values are consistent with each other,
> they are not the values I wanted entered. Even if
> GnuCash does want to round Shares down to 2 decimal
> places, there's no reason for it to change Price
> (which is fixed).
>
> Can someone explain why GnuCash changes the Price
> column and how I can get it to behave as I'd expect?
> I'd appreciate any help.
>
>
> Thanks,
> Chris
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list