cannot initialize annuity with 0 payments
genedan opened this issue · comments
Gene Dan commented
It may not be a common case for people to intentionally create an annuity with 0 payments, but this happened when trying iterate through annuities of various terms when calculating bond amortization. When this happens, you should still be able to initialize it, but the # payments, pv, and sv should all be 0.