Comment Comment by huseyinkeles Martin Fowler's money pattern [0] solves this problem. Just make sure whenever you're dealing with currencies to use a value object for money, rather than float. Lots of languages have libraries for this pattern. [1][0] - https://www.martinfowler.com/eaaCatalog/money.html[1] - https://github.com/topics/fowler-money-pattern parent huseyinkeles 6 years ago
[0] - https://www.martinfowler.com/eaaCatalog/money.html
[1] - https://github.com/topics/fowler-money-pattern