Commodities initialization list
Ngewi Fet
ngewif at gmail.com
Wed Sep 23 10:25:15 EDT 2015
Hello,
Could someone tell me difference between the smallest-fraction and
parts-per-unit in the default currencies XML?
I've been using the "smallest-fraction" (sf) entry for the fractions since
the file comments say "parts-per-unit" (ppu) is not used.
But there are some currencies where the smallest-fraction is 100, while the
parts-per-unit is 1 (and vice versa).
It doesn't seem to always be in agreement with the list here:
http://www.currency-iso.org/dam/downloads/lists/list_one.xml
e.g. for XAF, ppu is 1, while sf is 100 and the official list says
fractional digits is 0 (which means agreement with ppu).
Is the currencies XML file in the repo up-to-date?
Thanks
Ngewi F.
On Mon, Aug 10, 2015 at 5:38 PM, Derek Atkins <warlord at mit.edu> wrote:
> Ngewi Fet <ngewif at gmail.com> writes:
>
> > Hello everyone,
> > Could someone point out to me where the commodities list is found in the
> > repository?
>
> src/engine/iso-4217-currencies*
>
> > I tried searching the repo and can find code which seems to indicate that
> > there is a file which is loaded into the database on application start.
> But
> > I cannot find the list itself.
>
> The file is parsed into C and gets run at start.
>
> > I would like to initialize the Android app with the same list of
> > commodities as the desktop version.
> > Thanks.
> >
> > Regards,
> > Ngewi F.
>
> -derek
>
> --
> 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-devel
mailing list