Processing math: 100%

IEEE 754

ieee 754到十进数

ieee 754 从高到低, 1个符号位,8位exponent, 23位fraction

例子:

内存中的数据翻译成十进数的公式:

根据公式






最终表示的十进制浮点数

特殊情况

special case
Exponent fraction = 0 fraction ≠ 0 Equation
00H=000000002 ±zero subnormal number (1)sign×2126×0.fraction
01H,...,FEH=000000012,...,111111102 normal value (1)sign×2exponent127×1.fraction
FFH=111111112 ±infinity NaN(quiet, signaling)

1 thought on “IEEE 754”

Leave a Comment