浮点数的2进制表示

参考:

https://blog.csdn.net/fwb330198372/article/details/70238982?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~Rate-1.pc_relevant_paycolumn_v3&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2~default~CTRLIST~Rate-1.pc_relevant_paycolumn_v3&utm_relevant_index=1

 

https://www.jianshu.com/p/e5d72d764f2f

 

十进制小数 3.14转换二进制 3.14 = 11.001000111101011100001010001111010111000010100011111 = 1.1001000111101011100001010001111010111000010100011111 x 21

根据上面的公式

符号位:0

阶码部分:64位为例,1023+(1)= 1024,二进制就是10000000000

尾数部分:

64位为例,应为52位,1001000111101011100001010001111010111000010100011111

posted on 2024-09-23 15:00  lh03061238  阅读(5)  评论(0编辑  收藏  举报

导航