Skip to content

Commit 3311612

Browse files
authored
Change round() to np.round()
1 parent 38e6819 commit 3311612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy_financial/_financial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def npv(rate, values):
878878
net present value:
879879
880880
>>> rate, cashflows = 0.08, [-40_000, 5_000, 8_000, 12_000, 30_000]
881-
>>> round(npf.npv(rate, cashflows), 5)
881+
>>> np.round(npf.npv(rate, cashflows), 5)
882882
3065.22267
883883
884884
It may be preferable to split the projected cashflow into an initial

0 commit comments

Comments
 (0)