summaryrefslogtreecommitdiff
path: root/numpy/lib/financial.py
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2015-12-20 07:35:41 +0100
committerJaime <jaime.frio@gmail.com>2015-12-20 07:35:41 +0100
commit144c34b8ecd051e05a93c6268290eadb1827afb0 (patch)
treec8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/financial.py
parente2bdaccba1a8691f9223b059b981b2890bb13b09 (diff)
parent8bc592fabf4a2b0bc76db996b1523330ba095be3 (diff)
downloadnumpy-144c34b8ecd051e05a93c6268290eadb1827afb0.tar.gz
Merge pull request #6867 from gfyoung/print_fixes
DOC: No Print Statements When Using print_function from __future__
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