Intent-Code Divergence
Medium
- Confidence
- 96% confidence
- Finding
- This is a true issue because the documentation explicitly claims the example avoids floating-point inaccuracies, yet the implementation stores currency in a double and applies manual rounding. In financial code, this can produce cumulative precision errors, inconsistent balances, and developer misuse if readers copy the example into production systems believing it is safe for money handling.
