Re: [GNC-dev] Fraction in splits.value_denom is only 100 although the value in the qif file has more then decimal places 2

Alexander Damm <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <CAOxY-Geh25geM7YCBunh7gUpRkYHK16YXkgTzX4zV2=9KSE4qw@mail.gmail.com>
Hello,

ok understood. Due to currency exchange it is sometimes necessary to be a
little more precise. But if only 2 decimal places are supported then it is
the way it is.

We are not dealing with fraction of shares.

Regards alex

On Tue, 11 Apr 2023 at 19:13, john <[email protected]> wrote:

> > On Apr 11, 2023, at 5:14 AM, Alexander Damm <[email protected]>
> wrote:
> >
> > Hello,
> >
> > I recognized, that although my qif imports has 6 decimal places, only 2
> > decimal places seem to be imported and rounded up.
> >
> > Example 1:
> > QIF File:
> >
> > !Type:Invst
> > D05-01-2023 00:00:00
> > NBuyX
> > YAMGN
> > T1506.114762
> > I251.019127
> > Q6
> > MBuy: AMGEN INC Symbol:AMGN ISIN:US0311621009
> > L[Bank]
> > $-1506.114762
> > ^
> >
> > Database:
> > name | value_num | value_denom
> > AMGN| 150611 | 100
> >
> >
> > Example 2:
> > !Type:Invst
> > D05-01-2023 00:00:00
> > NBuyX
> > YKHC
> > T1414.6985574
> > I39.29718215
> > Q36
> > MKauf: KRAFT HEINZ CO/THE Symbol:KHC ISIN:US5007541064
> > L[Bank]
> > $-1414.6985574
> > ^
> >
> > Database:
> > name | value_num | value_denom
> > KHC| 141470 | 100
> >
> >
> >
> > This leads to incorrect amounts.Is this correct and/or wanted?
> >
> > Source:
> > https://github.com/hjacobs/gnucash-qif-import
>
> It's correct and wanted. There is no such thing as a millionth of a US
> dollar. The smallest legally recognized fraction is a hundredth, aka a
> penny.
> Note also that there is no legally recognized fraction of a share of Amgen
> or Kraft-Heinz.
>
> Is this from one of those investment-pool schemes where your broker
> pretends to let you trade fractional shares?
>
> Regards,
> John Ralls
>
>
>
>

-- 
Alexander Damm (ehemals Ritzer)
Drosselweg 4
61440 Oberursel
Tel.: 016092173081
<https://hangouts.google.com/?action=chat&pn=+4916092173081&hl=en&authuser=0>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.