<p dir="auto">Numpy - 1.12.1<br>
Python - 2.7.13 | Anaconda 4.4.0<br>
OS - CentOS, MacOS</p>
<p dir="auto">I am run the following code to produce an array using numpy</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
print np.arange(0.002, 0.021, 0.001)"><pre class="notranslate"><code class="notranslate">import numpy as np
print np.arange(0.002, 0.021, 0.001)
</code></pre></div>
<p dir="auto">And get the following result</p>
<p dir="auto"><code class="notranslate">[ 0.002  0.003  0.004  0.005  0.006  0.007  0.008  0.009  0.01   0.011 0.012  0.013  0.014  0.015  0.016  0.017  0.018  0.019  0.02   0.021] </code></p>
<p dir="auto">The last entry should not be there. This is specific to values I have mentioned here. I do not encounter this while using other values in arange.</p>
<p dir="auto">I was able to reproduce this in the following online ipython editor website, so I don't think this is specific to my installation.<br>
<a href="https://www.pythonanywhere.com/try-ipython/" rel="nofollow">https://www.pythonanywhere.com/try-ipython/</a></p>
<p dir="auto">Operating system: Windows 10<br>
python version: 3.5.3<br>
numpy version: 1.12.1</p>
<p dir="auto">Issue information:<br>
when I input numpy.arange(0,5), the output was normal for an array excluding the terminal number 5, but if I input numpy.arange(0.442,0.524,0.001), the outcome turned out to be abnormal including the terminal number 0.524.</p>