ledger · Sat, Oct 24 · Claude Code
Fix rounding in split transactions
3 prompts and 6 tool calls over 4 minutes. You corrected it once.
- You4:15 pm
splits are off by a cent sometimes. $10 split 3 ways shows 3.33 x3
- Claude Code4:15 pm
I'll put the leftover cent on the first split. Running the tests.
- Readsrc/budget/split.ts
- Editsrc/budget/split.ts
- Bashnpx jest src/budget
- You4:16 pm
we use vitest. run
pnpm vitest runinsteadCorrection