You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although an edge case, the value of an annuity with a zero discount rate is mathematically well-defined. The formula in fv.annuity(), however, divides by r and returns NaN for a zero discount rate.
I've made a fix and will submit a pull request. The value for the zero discount rate case is the limit (using L'Hôpital's rule) as r goes to zero.
The text was updated successfully, but these errors were encountered:
Although an edge case, the value of an annuity with a zero discount rate is mathematically well-defined. The formula in
fv.annuity()
, however, divides byr
and returnsNaN
for a zero discount rate.I've made a fix and will submit a pull request. The value for the zero discount rate case is the limit (using L'Hôpital's rule) as
r
goes to zero.The text was updated successfully, but these errors were encountered: