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

john <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnucash.devel
Message-ID <[email protected]>
> 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
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.