Claude Code Rounded Money Wrong in 5 of 10 Runs. An 11-Line CLAUDE.md Fixed It.
This story is from 2026-10-11. It is preserved in the archive; the latest stories are on the live feed.
Refund 50% of a 1,005-cent invoice. The billing code I gave the agent rounds half up, so the answer is 503. Running in Claude Code, Sonnet 5.5 returned 502 in 2 of 5 runs. Haiku 5.5 returned 502 in 3 of 5. Every one of those runs ended with a tidy summary saying it had rounded with round_money . Tw…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-11 14:40 · DEV Community — AI
Claude Code Rounded Money Wrong in 5 of 10 Runs. An 11-Line CLAUDE.md Fixed It.