Python's Decimal module stores decimal numbers exactly, not as binary approximations. This matters in treasury work where rounding errors in interest accruals, position valuations, and regulatory calculations can breach thresholds or break audit trails.
Python stores numbers as either exact integers or approximate binary floats, and this distinction matters deeply in finance. Learn how type coercion works, when float precision breaks down, and the defensive patterns that keep your calculations honest.