Understanding the IEEE Standard Floating Point format ...?
Posted: Sun Jun 06, 2004 1:10 am
..
The Place to Start for Operating System Developers
https://f.osdev.org/
Afaik, the biased exponent is something only used with denormals, and is used to make denormals start with a 1. A denormal is a number that's too small to be noted as a normal, but is just about 0.Perica wrote: - What is the point of adding a value to the exponent to get a "true exponent" that ends up being used, why not just use the original exponent that was stored? (This is just about the only part I understand about the biased exponent - it is about adding a value to the stored exponent to get a "true exponent" which is the exponent that ends up being used).
No, the exponent is the actual exponent, plus a certain number depending on the amount of bits available. The number added should always be either half the amount, or half the amount minus one. Thought it was the first, but it could be the second.- Is the exponent that is stored in the floating point number a signed 2's complement integer?
The value is added so you get a positive exponent, and you wouldn't need an extra bit for the sign. It's all about using as little bits as possible and still getting as much precision/range as possible out of it.Perica wrote: - What is the point of adding a value to the exponent to get a "true exponent" that ends up being used, why not just use the original exponent that was stored? (This is just about the only part I understand about the biased exponent - it is about adding a value to the stored exponent to get a "true exponent" which is the exponent that ends up being used).
Oh, I've already answered this one. It's an unsigned integer.Perica wrote: - Is the exponent that is stored in the floating point number a signed 2's complement integer?
Ok, so it's the second one. PS, for long doubles it's 16383 on both 80-bits and 128-bits long doubles.StrangeQuark wrote:Oh, I've already answered this one. It's an unsigned integer.Perica wrote: - Is the exponent that is stored in the floating point number a signed 2's complement integer?
Single precision floating point exponents get 8 bits and use excess 127, double precision exponents get 11 bits and use excess 1023.