<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Examples are as follows:<br>
<code class="notranslate">np.arange(0,1.12,0.04) will return </code>array([0.  , 0.04, 0.08, 0.12, 0.16, 0.2 , 0.24, 0.28, 0.32, 0.36, 0.4 ,<br>
0.44, 0.48, 0.52, 0.56, 0.6 , 0.64, 0.68, 0.72, 0.76, 0.8 , 0.84,<br>
0.88, 0.92, 0.96, 1.  , 1.04, 1.08, 1.12])<br>
but<br>
<code class="notranslate">np.arange(0,1.18,0.04) return  </code>array([0.  , 0.04, 0.08, 0.12, 0.16, 0.2 , 0.24, 0.28, 0.32, 0.36, 0.4 ,<br>
0.44, 0.48, 0.52, 0.56, 0.6 , 0.64, 0.68, 0.72, 0.76, 0.8 , 0.84,<br>
0.88, 0.92, 0.96, 1.  , 1.04])</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np

# One open interval, one closed interval
print(np.arange(0,1.12,0.04))

print(np.arange(0,1.08,0.04))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-c"># One open interval, one closed interval</span>
<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1.12</span>,<span class="pl-c1">0.04</span>))

<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1.08</span>,<span class="pl-c1">0.04</span>))</pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">1.22.2 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]</p>
<p dir="auto">Let me show you the issue directly:</p>
<h3 dir="auto">Reproducing code example:</h3>
<p dir="auto">np.arange(2114.8,2114.8+.05,.05)  produces array([2114.8 , 2114.85])</p>
<p dir="auto">np.arange(2114.8,2114.8+1.,1.) produces  array([2114.8])</p>
<p dir="auto">dont understand why they return arrays of different lengths.</p>