JavaScript/双精度浮点数:修订间差异
来自康健生活
| 第225行: | 第225行: | ||
<math>V = (-1)^S \times (d_{n}d_{n-1} \cdots d_{1}d_0 )_2 = (-1)^S \times \bigg(\sum_{i = 0}^{n -1} d_i \times 2^i \bigg)</math> | <math>V = (-1)^S \times (d_{n}d_{n-1} \cdots d_{1}d_0 )_2 = (-1)^S \times \bigg(\sum_{i = 0}^{n -1} d_i \times 2^i \bigg)</math> | ||
当 n = 7 时, | 当 n = 7 时,<math>V = (-1)^S \times (d_{6}d_{5}d_{4}d_{3}d_{2}d_{1}d_0 )_2 = (-1)^S \times \bigg(\sum_{i = 0}^6 d_i \times 2^i \bigg)</math> | ||
<math>V = (-1)^S \times (d_{6}d_{5}d_{4}d_{3}d_{2}d_{1}d_0 )_2 = (-1)^S \times \bigg(\sum_{i = 0}^6 d_i \times 2^i \bigg)</math> | |||
所以其 7 位二进制值位的取值范围为: | 所以其 7 位二进制值位的取值范围为: | ||