<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>误差 on My Blog</title>
    <link>http://localhost:1313/tags/%E8%AF%AF%E5%B7%AE/</link>
    <description>Recent content from My Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>3453434429@qq.com (ArenBase)</managingEditor>
    <webMaster>3453434429@qq.com (ArenBase)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sun, 22 Feb 2026 00:00:00 +0000</lastBuildDate>
    
    
    <atom:link href="http://localhost:1313/tags/%E8%AF%AF%E5%B7%AE/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>Double类型浮点数偏差</title>
      <link>http://localhost:1313/post/double%E7%B1%BB%E5%9E%8B%E6%B5%AE%E7%82%B9%E6%95%B0%E5%81%8F%E5%B7%AE/</link>
      <pubDate>Sun, 22 Feb 2026 00:00:00 &#43;0000</pubDate>
      <author>3453434429@qq.com (ArenBase)</author>
      <guid>http://localhost:1313/post/double%E7%B1%BB%E5%9E%8B%E6%B5%AE%E7%82%B9%E6%95%B0%E5%81%8F%E5%B7%AE/</guid>
      <description>
        <![CDATA[<h1>Double类型浮点数偏差</h1><p>作者：ArenBase（3453434429@qq.com）</p>
        
          <h1 id="1-核心矛盾有限的二进制位-vs-无限的实数">
<a class="header-anchor" href="#1-%e6%a0%b8%e5%bf%83%e7%9f%9b%e7%9b%be%e6%9c%89%e9%99%90%e7%9a%84%e4%ba%8c%e8%bf%9b%e5%88%b6%e4%bd%8d-vs-%e6%97%a0%e9%99%90%e7%9a%84%e5%ae%9e%e6%95%b0"></a>
1. 核心矛盾：有限的二进制位 vs 无限的实数
</h1><p>计算机内存是有限的，双精度浮点数（<code>double</code>）遵循IEEE 754标准，使用 <strong>64位</strong>​ 来存储一个数字。这64位被划分为符号位、指数位和尾数位（有效数字位）。关键限制在于：<strong>尾数部分只有53位有效二进制数字</strong>。</p>
        
        <hr><p>本文2026-02-22首发于<a href='http://localhost:1313/'>My Blog</a>，最后修改于2026-02-22</p>]]>
      </description>
      
        <category>C&#43;&#43;</category>
      
    </item>
    
  </channel>
</rss>
