<!-- Please describe the issue in detail here, and fill in the fields below --> ### Reproducing code example: <!-- A short code example that reproduces the problem/missing feature. It should be self-contained, i.e., possible to run as-is via 'python myproblem.py' --> ```python import numpy as np np.nper(rate=0.1, pmt=0, pv=-500, fv=1500) ``` <!-- Remove these sections for a feature request --> ### Error message: <!-- If you are reporting a segfault please include a GDB traceback, which you can generate by following https://github.com/numpy/numpy/blob/master/doc/source/dev/development_environment.rst#debugging --> numpy\lib\financial.py:308: RuntimeWarning: divide by zero encountered in long_scalars A = -(fv + pv)/(pmt+0) <!-- Full error message, if any (starting from line Traceback: ...) --> ### Actual Result: `np.nper()` returns the correct result with "divide by zero" warning ### Expected Result: `np.nper()` returns the same correct result but without warning ### Numpy/Python version information: <!-- Output from 'import sys, numpy; print(numpy.__version__, sys.version)' --> 1.16.4 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]