Em quinta-feira, 13 de abril de 2023 às 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?
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 (and googling "ada" and "currency" has not helped due to some unfortunately named crypto stuff).
I'm also interested in if there's any ada libraries for iso 3166 (country codes).
If none of this exists, that's fine, it just gives me a reason to build it out myself, but I don't want duplication of effort :)
AJ.
[1] https://ada-lang.io/docs/style-guide/Reusability/#guideline-16
[2] https://docs.adacore.com/live/wave/aunit/html/aunit_cb/aunit_cb/fixture.html
I'm actually making something like this, but it isn't complete, and uses Lua scripts to handle different currencies (and formating).
It also has location support (country, state, city) and language support, including 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 countries.
I paused the development because I'm focusing on another project that has been causing me some headaches lately.
It's broken and cannot deliver what you want - as of now.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)