<p dir="auto">In current master:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.array(1, dtype=int) ** -2
Out[5]: 0"><pre class="notranslate"><code class="notranslate">np.array(1, dtype=int) ** -2
Out[5]: 0
</code></pre></div>
<p dir="auto">In 1.11 and earlier:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: np.array(1, dtype=int) ** -2
Out[3]: 1"><pre class="notranslate"><code class="notranslate">In [3]: np.array(1, dtype=int) ** -2
Out[3]: 1
</code></pre></div>
<p dir="auto">(Found in astropy testing; <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155642213" data-permission-text="Title is private" data-url="https://github.com/astropy/astropy/issues/4950" data-hovercard-type="pull_request" data-hovercard-url="/astropy/astropy/pull/4950/hovercard" href="https://github.com/astropy/astropy/pull/4950">astropy/astropy#4950</a>)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; np.int64(2) ** -2
0.25
&gt;&gt;&gt; np.int32(2) ** -2
0"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">int64</span>(<span class="pl-c1">2</span>) <span class="pl-c1">**</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>
<span class="pl-c1">0.25</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">np</span>.<span class="pl-en">int32</span>(<span class="pl-c1">2</span>) <span class="pl-c1">**</span> <span class="pl-c1">-</span><span class="pl-c1">2</span>
<span class="pl-c1">0</span></pre></div>
<p dir="auto">Tested on OSX 10.8.5 w/ numpy 1.10 on both Python 2.7 and 3.5.</p>