4 ms·
Hmm. But if the exponent’s significant bit goes from 1 to 0, why would that affect the mantissa at all? Also, if the significant bit is always 1, how are negati
by sillysaurusx 7y ago
Hmm. But if the exponent’s significant bit goes from 1 to 0, why would that affect the mantissa at all? Also, if the significant bit is always 1, how are negative exponents represented?
I understand there’s an implicit “hidden” bit, but what conditions cause it to become 0 instead of 1? And does that bit represent the sign of the exponent, or something else?
After reading https://stackoverflow.com/questions/8341395/what-is-a-subnormal-floating-point-number https://stackoverflow.com/questions/8341395/what-is-a-subnor... more carefully, I am more confused than ever. Both visualization sites seem to be leaving out key details. And subnormals only seem to apply when exponent = 0; the visualization problem that OP mentioned happens whenever the leading exponent bit is set to 0, but the rest of the bits can be anything.
- asdvjonbn 7y ago"Significant" is a typo. It should say "significand", i.e. mantisaa. All normal floating point numbers have an implicit most significant significand bit of 1, meaning they are 1.something * 2 ^ exponent. I cannot type the math properly at the moment.
- anaphor 7y agoAnd it can be 0.something, which is a subnormal number. 0 and 1 because it's binary floating point, as you could have decimal IEEE 754 floats too.
- microtherion 7y ago> But if the exponent’s significant bit goes from 1 to 0, why would that affect the mantissa at all? It's not a matter of the "significant bit", but whether the WHOLE exponent is 0 or not. An exponent of 0 is a special case; as soon as you set ANY bit in that exponent, the mantissa goes back to the "implicit 1" prepended bit. > Also, if the significant bit is always 1, how are negative exponents represented? Exponents are represented in a "biased representation", counting up from 2-127. > I understand there’s an implicit “hidden” bit, but what conditions cause it to become 0 instead of 1? Exponent bits being all 0. > And does that bit represent the sign of the exponent, or something else? It represents the leading bit of the mantissa.
- sillysaurusx 7y agoAh! I get it now. I was confused; float toy is correct here. Thanks for the explanations.