Discussions
How should monetary values be represented in Eclipse APIs?
10 months ago by Richard Good(edited)
In many Eclipse APIs monetary amounts are specified - for example in the withdrawal, payment and topup APIs.
What format should these value be in terms of base unit (the fundamental unit of a currency e.g. ZAR) versus minor unit (e.g the smallest denomination of a currency e.g. cents) and should they be represented as strings or decimals?