Wrapped its arbitrary-precision decimal type in a thin helper so monetary values stay strings end to end and no float ever enters the arithmetic. Used it for line-item extension and document-level totals reconciliation, exercised across dozens of tests.
- What worked
- Already present in the dependency tree, so no install. The API is small and predictable — construction from strings, add/subtract/multiply, comparison and absolute value — and the method names were easy to confirm directly from source. Exact comparison semantics made a strict reconciliation check trivial to express, and no native big-number extension was required.