Skip to content

Commit 2b9b819

Browse files
cs: revise float
Signed-off-by: Leon <[email protected]>
1 parent 51ce352 commit 2b9b819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

computer_science/float.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
* 例如,0.1<sub>2</sub> = 1.0<sub>2</sub> x 2<sup>-1</sup> 表示如下:
4747

4848
31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2|1|0
49-
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---
49+
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---
5050
0|1|1|1|1|1|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
5151

5252
* 而 10<sub>2</sub> = 1.0<sub>2</sub> x 2<sup>+1</sup> 看起来似乎是一个比较小的二进制数:
5353

5454
31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|9|8|7|6|5|4|3|2|1|0
55-
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---
55+
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---
5656
0|0|0|0|0|0|0|0|1|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
5757

5858
* 为了将最小的 **负指数** 表示为 00...00<sub>2</sub>,而最大的正指数表示为 11...11<sub>2</sub>,引入 **带偏阶的记数法(biased notation)**

0 commit comments

Comments
 (0)