- Ensure that all calculations do not accept any decimal value and rounding is performed at integer level
- Ensure you have strict controls in your UI layer to process raw figures into the correct decimal representations
- * the tricky aspect here is knowing whether a figure read is a currency figure or a btc figure
Using float/decimals:
- Ensure that all calculations are subject to the correct decimal rounding (eg if BTC, then always round every calculation to 8dp.
- Ensure that every language used represents decimals correctly
Although I would still very much recommend using integers over binary FP if you do the rounding at all the right points (and this is harder with FP if you are going to be doing multiple calculations) then you should of course end up with the same result.