Open
Description
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 several ZeroDivisionError
s that are currently handled poorly (they return NAN
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.