Open katsusan opened 3 years ago
Floating point numbers are internally composed of the sign bit, the exponent field, the significand or mantissa, from left to right.
For IEEE 754 binary formats, they are usually apportioned as follows:
以下图为例,
按照的约定可以得出:
因此value = (-1)0 x 2(124-127) x (1 + 2-2x1) = 1/8 x 1.25 = 0.15625.
双精度double precision floating point则类似地按照如下计算方式:
=>
或者
Floating point numbers are internally composed of the sign bit, the exponent field, the significand or mantissa, from left to right.
For IEEE 754 binary formats, they are usually apportioned as follows:
以下图为例,
按照
的约定可以得出:
因此value = (-1)0 x 2(124-127) x (1 + 2-2x1) = 1/8 x 1.25 = 0.15625.
双精度double precision floating point则类似地按照如下计算方式:
=>
或者