Fix amortization float rounding leaving non-zero final balance #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium
Category: correctness
Location:
mortgage.py:51-55Problem
Per-row round() over 360 months accumulates ~$3-5 error; the final schedule row shows a small non-zero balance so the loan looks unpaid at term.
Suggested fix
Track raw floats internally, round at display only, and append a final corrective payment if balance>0.
Filed by automated code review.