JavaScript/双精度浮点数:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第416行: | 第416行: | ||
0.5 \times 2 = 1 & \quad\cdots\quad\text{取整 1 } & \downarrow \end{aligned}</math> | 0.5 \times 2 = 1 & \quad\cdots\quad\text{取整 1 } & \downarrow \end{aligned}</math> | ||
精度损失,比如 <math>(0.3)_{10} = (0.0\overline{ | 精度损失,比如 <math>(0.3)_{10} = (0.0\overline{1001})_2</math>。 | ||
<math>\begin{align} | <math>\begin{align} | ||
(0.3)_{10} = 0.010011001100110011001 \cdots \\ | (0.3)_{10} = 0.010011001100110011001 \cdots \\ | ||
= 0.0\overline{ | = 0.0\overline{1001} | ||
\end{align}</math> | \end{align}</math> | ||