| ▲ | lxgr 4 hours ago | |||||||||||||
The brittleness comes from the fact that the number of implied decimal digits per currency isn't always well-defined across all stakeholders and systems. If you're only working in a single currency, there's usually no issue. | ||||||||||||||
| ▲ | foresterre 4 hours ago | parent [-] | |||||||||||||
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. | ||||||||||||||
| ||||||||||||||