Fintech · 3 min read
Decimal arithmetic in financial systems: cents that never vanish
Binary floating point can't represent 0.10 exactly. How to represent money, choose rounding rules and split amounts without losing or creating cents.
Trading infrastructure, risk, market data and correctness in financial systems.
Binary floating point can't represent 0.10 exactly. How to represent money, choose rounding rules and split amounts without losing or creating cents.
How to design risk controls that run before every order: which checks to include, in what order, how to keep state without locks, and why to fail closed.