Floating-point: “The leading 1 is 'implicit' in the significand.” — …huh?

后端 未结 3 1121
忘掉有多难
忘掉有多难 2020-12-25 14:29

I\'m learning about the representation of floating-point IEEE 754 numbers, and my textbook says:

To pack even more bits into the significand, IEEE 754

3条回答
  •  忘掉有多难
    2020-12-25 14:59

    Here is what they are saying. The first non-zero bit is always going to be 1. So there is no need for the binary representation to include that bit, since you know what it is. So they don't. They tell you where that first 1 is, and then they give the bits after it. So there is a 1 that is not explicitly in the binary representation, whose location is implicit from the fact that they told you where it was.

提交回复
热议问题