1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-04-13 17:50:22 +08:00

非规格化非0数的e恒为0,不需要出现。

感谢@bjrjk指正。

Resolved #17.
This commit is contained in:
Zhang Fuxin
2021-11-15 23:52:47 +08:00
parent df8547f0b2
commit 926deebc7e
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
非数NaN,0或1,255,≠0,NaN,0或1,2047,≠0,NaN
规格化非0正数,0,0<e<255,f,1.f×2^e-127^,0,0<e<2047,f,1.f×2^e-1023^
规格化非0负数,1,0<e<255,f,-1.f×2^e-127^,1,0<e<2047,f,-1.f×2^e-1023^
非规格化非0正数,0,0,f≠0,0.f×2^e-126^,0,0,f≠0,0.f×2^e-1022^
非规格化非0负数,1,0,f≠0,-0.f×2^e-126^,1,0,f≠0,-0.f×2^e-1022^
非规格化非0正数,0,0,f≠0,0.f×2^-126^,0,0,f≠0,0.f×2^-1022^
非规格化非0负数,1,0,f≠0,-0.f×2^-126^,1,0,f≠0,-0.f×2^-1022^
正0,0,0,0,0,0,0,0,0
负0,1,0,0,0,1,0,0,0
1 null 符号 阶码 尾数 符号1 阶码2 尾数3 值4
4 非数(NaN) 0或1 255 ≠0 NaN 0或1 2047 ≠0 NaN
5 规格化非0正数 0 0<e<255 f 1.f×2^e-127^ 0 0<e<2047 f 1.f×2^e-1023^
6 规格化非0负数 1 0<e<255 f -1.f×2^e-127^ 1 0<e<2047 f -1.f×2^e-1023^
7 非规格化非0正数 0 0 f≠0 0.f×2^e-126^ 0.f×2^-126^ 0 0 f≠0 0.f×2^e-1022^ 0.f×2^-1022^
8 非规格化非0负数 1 0 f≠0 -0.f×2^e-126^ -0.f×2^-126^ 1 0 f≠0 -0.f×2^e-1022^ -0.f×2^-1022^
9 正0 0 0 0 0 0 0 0 0
10 负0 1 0 0 0 1 0 0 0