<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/541" rel="nofollow">http://projects.scipy.org/numpy/ticket/541</a> on 2007-06-28 by trac user chipschips, assigned to unknown.</em></p>
<p dir="auto">integer division by zero returns 0 rather then inf (or some other specially defined integer infinity constant). This behavior is not consistent with floats and is mathematically wrong.</p>
<p dir="auto">Example:</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">1/int_(0)<br>
0<br>
1/float_(0)<br>
inf</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">Is this a bug or there is some good reason why ints behave this way?<br>
I'm using numpy 1.0.1 and scipy 0.5.2</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/541" rel="nofollow">http://projects.scipy.org/numpy/ticket/541</a> on 2007-06-28 by trac user chipschips, assigned to unknown.</em></p>
<p dir="auto">integer division by zero returns 0 rather then inf (or some other specially defined integer infinity constant). This behavior is not consistent with floats and is mathematically wrong.</p>
<p dir="auto">Example:</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">1/int_(0)<br>
0<br>
1/float_(0)<br>
inf</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">Is this a bug or there is some good reason why ints behave this way?<br>
I'm using numpy 1.0.1 and scipy 0.5.2</p>