| ▲ | lawlorino 4 hours ago | ||||||||||||||||
> I consider running from “amounts as integer” systems these days (but usually unfortunately can’t). In the context of Fintech, how do you otherwise resolve floating point rounding issues if not representing amounts with integers? | |||||||||||||||||
| ▲ | lxgr 4 hours ago | parent | next [-] | ||||||||||||||||
Native decimal types, if your system has them. Many languages and databases used in financial contexts do. | |||||||||||||||||
| |||||||||||||||||
| ▲ | simpsond 4 hours ago | parent | prev [-] | ||||||||||||||||
An integer for the value (scaled by number of decimals) and an integer value for the number of decimals. Different systems may use different values, even for the same currency or asset. | |||||||||||||||||
| |||||||||||||||||