浮点数IEEE754

浮点数可理解成二进制中的科学计数法

5.75:01.0111*2^2
161.875:01.100001111*2^7
-0.0234375:10.0000011(?)
举例:(来源网络)https://www.cnblogs.com/oxspirt/p/7234024.html

http://www.weitz.de/ieee/

5.75:0.10000001.01110000000000000000000

161.875:0.10000110.01000011110000000000000

-0.0234375:1.01111001.10000000000000000000000

S代表符号,E为阶码,用移码表示,【x】移=2^n+xM,运算时可用移码=补码符号位取反。M代表尾数,位数不足补0

posted @ 2020-10-18 10:37  20201202史婧怡  阅读(160)  评论(0编辑  收藏  举报