Discussions

Ask a Question
Back to All

How should monetary values be represented in Eclipse APIs?

(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?