News for hackers. Stuff that matters.
Re:Fintech Engineering Handbook by foresterre on Saturday June 27, 2026 @11:21AM (#48699035)
As a general rule, you always include the currency code (EUR, SEK, USD etc.) and if possible also the amount of decimals, when using minor units.

Currency codes can be found in ISO 4217.

Re:Fintech Engineering Handbook by lxgr on Saturday June 27, 2026 @11:24AM (#48699059)
Yes, definitely always include the number of digits, but at your system boundary you still have to pray that whoever you're working with isn't silently dropping that number and re-deriving it from their own, almost-4217-compliant currency database.

Redundancy can be great, but it's not a panacea, since it's not guaranteed to be used in an optimal way.

Re:Fintech Engineering Handbook by jyounker on Saturday June 27, 2026 @04:38PM (#48701539)
How you expose you present your data to third parties is not how you represent it internally.
Re:Fintech Engineering Handbook by lxgr on Saturday June 27, 2026 @06:03PM (#48702199)
Ideally it’s not, but I’ve seen it leak so often that I’d rather be safe than sorry.
Re:Fintech Engineering Handbook by 0xffff2 on Saturday June 27, 2026 @01:48PM (#48700218)
ISO 4217 also defines the number of significant digits after the decimal separator if Wikipedia is to be believed.