<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">When using np.floor_divide() on long integers the results are sometimes wrong.</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

print(np.mod(10888869450418352160,10))
&gt;&gt;8.0"><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-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">mod</span>(<span class="pl-c1">10888869450418352160</span>,<span class="pl-c1">10</span>))
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">8.0</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">numpy version 1.22.2</p>
<p dir="auto">running build<br>
running config_cc<br>
unifing config_cc, config, build_clib, build_ext, build commands --compiler options<br>
running config_fc<br>
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options<br>
running build_src<br>
build_src<br>
building py_modules sources<br>
building library "npymath" sources<br>
error: don't know how to compile C/C++ code on platform 'posix' with 'gcc' compiler</p>