AndreasN wrote on Wed, 01 February 2006 18:34 |
Nope. 32 bit float does not provide for a longer digital word lenght than 24 bit fixed. Those extra bits are used for scaling the amplitude of the digital word. By the way; Bob O wrote: "Thirty-two floating point represents 24 bits (technically maybe only 23, but that's over my head) plus a number that sets overall volume."
In floating point, the first bit is used for setting the sign, positive or negative. Then comes the 8 bit exponent, and lastly the 23 bit mantissa. The first bit of floating point are the same as the most significant bit of a fixed word giving the same resolution, 24 bits. Andreas
|
A few comments,
32bit float
will provide a longer actual wordlength than 24bits int, because the exponent "takes care" of the leading zeroes of the word, which with binary integers will decrease the resolution by half, for each -6dB level drop. For example, within the range from -48 to -54dB, 24bit int provides "only" 16bit resolution, while 32bit float provides 24bits, within this same range.
THIS, will of course not provide for a longer word, if we look at the results of a 24 int to 32 float conversion
only, but as soon as we do any kind of processing, this "increased wordlength" will provide for more precise results. However, the float has its own flaws, as this earlier mentioned
Rane link explains.
For example, if we say that the level of "1 LSB" in 24bit int has a value of "1", it is the smallest possible variation of the signal. It will remain as "1" all the way down to -144dB.
With 32bit float, OTOH, the value of this smallest possible variation will decrease by 50% for each -6dB drop. To "0.5", then to "0.25", and so on... The accuracy of the mantissa remains at 24bits (or 1+23), while the value of the exponent tells what scale to use, and thus the size of the quantzation steps, (max scale value divided by 2^24).
Then there is the issue about the "implied bit" in 32 float, i.e. the "extra" bit to the left of the binary decimal point, which we maybe won't need to discuss here and now?
I'm sure Jon H. could explain this way more "elegantly" than me,
C.J., Finland