summaryrefslogtreecommitdiff
path: root/numpy/lib/financial.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/financial.py')
-rw-r--r--numpy/lib/financial.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/financial.py b/numpy/lib/financial.py
index a7e4e60b6..c42424da1 100644
--- a/numpy/lib/financial.py
+++ b/numpy/lib/financial.py
@@ -247,7 +247,7 @@ def nper(rate, pmt, pv, fv=0, when='end'):
If you only had $150/month to pay towards the loan, how long would it take
to pay-off a loan of $8,000 at 7% annual interest?
- >>> print round(np.nper(0.07/12, -150, 8000), 5)
+ >>> print(round(np.nper(0.07/12, -150, 8000), 5))
64.07335
So, over 64 months would be required to pay off the loan.
@@ -347,7 +347,7 @@ def ipmt(rate, per, nper, pv, fv=0.0, when='end'):
>>> for payment in per:
... index = payment - 1
... principal = principal + ppmt[index]
- ... print fmt.format(payment, ppmt[index], ipmt[index], principal)
+ ... print(fmt.format(payment, ppmt[index], ipmt[index], principal))
1 -200.58 -17.17 2299.42
2 -201.96 -15.79 2097.46
3 -203.35 -14.40 1894.11