genedan / TmVal

Time Value of Money - a Python package for mathematical interest theory, annuity, and bond calculations.

Home Page:https://genedan.com/tmval/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix checks for compound and level interest in Amount class

genedan opened this issue · comments

Certain growth functions aren't defined on all real numbers, so when the checks use an invalid domain value , a ZeroDivisonError may happen. There's a temporary fix pushed, but these routines can be more thoughtfully written.