3 ms·
> Zero is all-bits-zero. Its biased exponent is 00000000, or 127−127. ... 2^-127 Isn't 127-127 = 0, so it should be 2^0
by ddtaylor 5y ago
> Zero is all-bits-zero. Its biased exponent is 00000000, or 127−127. ... 2^-127
Isn't 127-127 = 0, so it should be 2^0
- deleted 5y ago[deleted]
- guitarbill 5y agoIf you want to describe how to get the bit pattern, that's the calculation based on the known exponent. So because 127 - 127 = 0, the bit pattern is zeros. Not the other way around ;)
- ajnin 5y agoThe "biased" exponent has a constant 127 added to it, so for example if the bits are 00000000 the exponent is actually 0-127=-127, if the bits are 10000111 the exponent is 135-127=8, and so forth.