Floating Point Representation

1 次查看(过去 30 天)
Stuart
Stuart 2011-8-7
Suppose we are in a floating-point regime where the mantissa had 3 digits and the exponent has one digit.
Then, 0 = .000e-9 is relatively isolated from next two positive numbers .100e-9 and .101e-9. Which are 10e-12 apart.
This is from Hamming's book on numerical methods, but how is .100e-9 the next positive number, why not .001e-9?
  3 个评论
James Tursa
James Tursa 2011-8-7
@Walter: OP has stated a decimal digit system, so hidden bit & normalization is not applicable.
Walter Roberson
Walter Roberson 2011-8-7
Okay on the hidden bit, but I think normalization is still a factor.
You seldom want a system that has a distinct zero for every different exponent value (e.g., 000E-9 000E-10).
You seldom want a system that has three different representations for some values, such as 100E-12 010E-11 001E-10
IEEE 754, referenced in the tags, *requires* normalization of binary values, except for the extremely small denormalized numbers, which it has special rules for.
IEEE 754 did adopt an optional decimal representation; my recollection at the moment is that it uses normalization as well, but I would need to cross-check that.

请先登录,再进行评论。

回答(1 个)

James Tursa
James Tursa 2011-8-7
1) What does this have to do with MATLAB?
2) How can you have numbers in the e-9 and e-12 range with only one exponent digit? Is this some type of decimal digit floating point system you are talking about? If so, what is the exponent bias? How can you get negative exponents in e-9 range with only one digit?
In short, please explain the floating point format you are talking about in detail.
  2 个评论
Stuart
Stuart 2011-8-7
Decimal digits, rest isn't relevant to answer.
James Tursa
James Tursa 2011-8-7
Obviously you don't think so, but I do. Why isn't 0.001e-10 or 0.001e-11 or 0.001e-12 the next positive number? The exponent bias *does* make a difference to me, and I can't answer your question without knowing this.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by