MAINT: Avoid ZeroDivisionError
s in nper_inner_loop
#119
Labels
Milestone
ZeroDivisionError
s in nper_inner_loop
#119
Proposed new feature or change:
I've just merged #118, this PR reproduced the behaviour of
nper
in Cython as closely as possible. However there are severalZeroDivisionError
s that are currently handled poorly (they returnNAN
s).numpy-financial/numpy_financial/_cfinancial.pyx
Lines 21 to 22 in 8583586
In each case, we should carefully evaluate each code path and return a financially sensible result.
The text was updated successfully, but these errors were encountered: