4 ms·
I figured they used Binary Coded Decimal [0] when they need to support decimals. [0] : https://en.wikipedia.org/wiki/Binary-coded_decimal https://en.wikipedia.
by roblabla 11y ago
I figured they used Binary Coded Decimal [0] when they need to support decimals.
[0] : https://en.wikipedia.org/wiki/Binary-coded_decimal https://en.wikipedia.org/wiki/Binary-coded_decimal
- lsaferite 11y agoWell, I know from doing payment gateway integration that many of them use integers for currency amounts. They are the smallest currency unit and for display you then convert based on the currency specific precision value.