|
|
| 第384行: |
第384行: |
| = 0.0\overline{1}\overline{0}\overline{0}\overline{1} | | = 0.0\overline{1}\overline{0}\overline{0}\overline{1} |
| \end{align}</math> | | \end{align}</math> |
|
| |
| === 双精度 Double 64位(8字节) ===
| |
|
| |
| * <math>(1.\overline{0})_{10} \times 2^{-1022} \approx 2.22507E-308</math>
| |
| * <math>(2^{52})_{10} \times 2^{1023} \approx 1.79769E308</math>
| |
| * <math>(2^{-52})_{10} \times 2^{-1022} \approx 4.940656E-324</math>
| |
|
| |
| 变量范围为 <math>-2^{1024 } \sim +2^{1024 }</math> 转换为 <math>\pm 2.22507 \times 10^{-308} \sim \pm 1.79769 \times 10^{308}</math>,有效数字为 15 位。
| |
|
| |
| 在JavaScript 中所有的数字的实际存储都是通过 8 字节 double 浮点型进行表示,使用 64 位(8字节)来存储一个浮点数。double 浮点型的正负数的范围是 <nowiki>-2^1024 ~ +2^1024</nowiki> 也就是 <nowiki>[-1.79E+308, +1.79E+308]</nowiki>,<s>数的绝对值范围是 <nowiki>2^-1022 ~ +2^1024</nowiki> 也就是 <nowiki>[2.23E-308, +1.79E+308]</nowiki>。</s>
| |
|
| |
| <blockquote><pre>
| |
| -1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308</pre></blockquote>
| |
|
| |
|
| == 标题文本 == | | == 标题文本 == |