While I understand why a bias representation for the exponent is
preferable (for lexicographical comparison, given that the
magnitude can be already compared lexicographical), I'm wondering
what the rationale for choosing a signed representation was.
I understand that this representation allows to distinguish
between +0.0 and -0.0, but I doubt that this was the original
motivation (indeed, some Kahan papers indicate that implementations
should treat them equally).
Any inside appreciated,
Martin
And some of us have used machines with just such representations.
>While I understand why a bias representation for the exponent is
>preferable (for lexicographical comparison, given that the
>magnitude can be already compared lexicographical), I'm wondering
>what the rationale for choosing a signed representation was.
It makes analysis and optimisation marginally easier - for example,
if x is representable, so is -x.
>I understand that this representation allows to distinguish
>between +0.0 and -0.0, but I doubt that this was the original
>motivation (indeed, some Kahan papers indicate that implementations
>should treat them equally).
No, it predates IEEE 754 by a considerable margin. It had gained
general acceptance by 1970, and was regarded as 'the right way'
by 1980. That was despite the fact that there was plenty of
evidence that twos complement representations were perfectly good.
Let's not start on the IEEE 754 signed zero, er, saga ....
Regards,
Nick Maclaren.