From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, T_FILL_THIS_FORM_SHORT,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:10:b0:3ec:c208:520d with SMTP id x16-20020a05622a001000b003ecc208520dmr1582886qtw.4.1683223152000; Thu, 04 May 2023 10:59:12 -0700 (PDT) X-Received: by 2002:a81:4509:0:b0:54e:8b9a:65be with SMTP id s9-20020a814509000000b0054e8b9a65bemr1774392ywa.6.1683223151712; Thu, 04 May 2023 10:59:11 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 4 May 2023 10:59:11 -0700 (PDT) In-Reply-To: <30b4ef1e-cca5-4837-9228-640e66d0d96bn@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=185.153.176.189; posting-account=HY5GYgoAAABzJbJ0lJA2XYPpA3wGVsWQ NNTP-Posting-Host: 185.153.176.189 References: <30b4ef1e-cca5-4837-9228-640e66d0d96bn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5cd9b9e2-03ea-4fd7-ad93-0ea7c745fd8fn@googlegroups.com> Subject: Re: Currency Library for Ada? From: Devin Rozsas Injection-Date: Thu, 04 May 2023 17:59:11 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2639 Xref: news.eternal-september.org comp.lang.ada:65168 List-Id: Em quinta-feira, 13 de abril de 2023 =C3=A0s 11:17:28 UTC-3, A.J. escreveu: > Does anyone know if Ada has a currency library? Ideally one that includes= the ISO 4217 currency standard?=20 >=20 > I've seen currency referenced as examples in the Style Guide[1] and other= documentation[2] but I'm having trouble searching for anything concrete (a= nd googling "ada" and "currency" has not helped due to some unfortunately n= amed crypto stuff).=20 >=20 > I'm also interested in if there's any ada libraries for iso 3166 (country= codes).=20 >=20 > If none of this exists, that's fine, it just gives me a reason to build i= t out myself, but I don't want duplication of effort :)=20 >=20 > AJ.=20 >=20 > [1] https://ada-lang.io/docs/style-guide/Reusability/#guideline-16=20 > [2] https://docs.adacore.com/live/wave/aunit/html/aunit_cb/aunit_cb/fixtu= re.html I'm actually making something like this, but it isn't complete, and uses Lu= a scripts to handle different currencies (and formating). It also has location support (country, state, city) and language support, i= ncluding message translation (so the program can output stuff in the user's= language). For this, TOML is used. It uses Glottolog codes to identify languages, and FIFA codes for the count= ries. I paused the development because I'm focusing on another project that has b= een causing me some headaches lately. It's broken and cannot deliver what you want - as of now.