<p dir="auto">For some reason, numpy.remainder function is not working as defined for the following specific case:</p>
<p dir="auto">np.remainder(.60,.04) = 0.04</p>
<p dir="auto">0.60-np.floor(0.60/0.04)*0.04 = 0.00   (Function as defined)</p>
<p dir="auto">This seems to be the only case for which the definition does not match the function output.</p>
<p dir="auto">This seems to be a regression in 11.0 or in master (note the values are exactly representable):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.remainder(3, 2.5)
0.49999999999999989
&gt;&gt;&gt; np.__version__
'1.12.0.dev0+58263eb'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.remainder(3, 2.5)
0.49999999999999989
&gt;&gt;&gt; np.__version__
'1.12.0.dev0+58263eb'
</code></pre></div>
<p dir="auto">Compare to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.remainder(3, 2.5)
0.5
&gt;&gt;&gt; np.__version__
'1.10.4'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; np.remainder(3, 2.5)
0.5
&gt;&gt;&gt; np.__version__
'1.10.4'
</code></pre></div>