Also in Fintech. In some cases it is actually necessary to have more than 2 decimal places.
For example, interest accrued daily, but only ‘compounded’ monthly. In those cases, it is necessary to maintain far more than the 2 decimal places for the daily accruals.
The best type to use here would be BigDecimal or equivalent. These ultimately serialise to infinite length strings.
At the moment you can only trade (place bids/asks) on Luno with the following currency pairs: BTC/IDR, BTC/MYR, BTC/NGN, BTC/ZAR (largest volume) and ETH/BTC.
I think they started out as a South African only exchange a few years back.
For example, interest accrued daily, but only ‘compounded’ monthly. In those cases, it is necessary to maintain far more than the 2 decimal places for the daily accruals.
The best type to use here would be BigDecimal or equivalent. These ultimately serialise to infinite length strings.