mirror of
https://github.com/krahets/hello-algo.git
synced 2025-07-13 10:42:08 +08:00
deploy
This commit is contained in:
@ -852,7 +852,7 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#331" class="md-nav__link">
|
||||
3.3.1 原码、反码和补码
|
||||
3.3.1 整数编码
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@ -3242,7 +3242,7 @@
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#331" class="md-nav__link">
|
||||
3.3.1 原码、反码和补码
|
||||
3.3.1 整数编码
|
||||
</a>
|
||||
|
||||
</li>
|
||||
@ -3314,7 +3314,7 @@
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>在本书中,标题带有的 * 符号的是选读章节。如果你时间有限或感到理解困难,可以先跳过,等学完必读章节后再单独攻克。</p>
|
||||
</div>
|
||||
<h2 id="331">3.3.1 原码、反码和补码<a class="headerlink" href="#331" title="Permanent link">¶</a></h2>
|
||||
<h2 id="331">3.3.1 整数编码<a class="headerlink" href="#331" title="Permanent link">¶</a></h2>
|
||||
<p>在上一节的表格中我们发现,所有整数类型能够表示的负数都比正数多一个,例如 <code>byte</code> 的取值范围是 <span class="arithmatex">\([-128, 127]\)</span> 。这个现象比较反直觉,它的内在原因涉及到原码、反码、补码的相关知识。</p>
|
||||
<p>首先需要指出,<strong>数字是以“补码”的形式存储在计算机中的</strong>。在分析这样做的原因之前,我们首先给出三者的定义。</p>
|
||||
<ul>
|
||||
|
Reference in New Issue
Block a user