jacob navia
6/10/2011 10:33:00 PM
Le 10/06/11 22:40, Sherm Pendley a écrit :
> Keith Thompson<kst-u@mib.org> writes:
>
>> (I won't try to explain ISO's and ANSI's pricing policies.)
>
> A pity, because I really wish someone would...
>
> sherm--
Well, it is very difficult to read the standard.
There is a whole cottage industry of language lawyers that
apparently have mastered the art of interpreting that document.
After years of studying (and years of work implementing it)
I am still unable to understand what it says, as I demonstrated again
in this thread.
I said
> The standard says "If the value is zero the exponent is zero", probably
> > meaning that -0 should be printed as zero, without the sign.
Then Mr Thompson answered:
I think that just means that if the value of the number is zero, the
exponent is zero. In other words, 0.0 won't print as "0.000000e+42".
That sentence isn't providing guidance for how a zero exponent should be
printed.
Is Mr Thompson right?
Am I right?
Nobody knows, the sentence is ambiguous. Are they speaking of negative
zero? Or are they speaking about 0.000000e+45?
As many people have pointed out before, the standard leaves a lot just
"undefined" or "implementation defined". Error analysis is one of the
weakest point in the whole document.
In years of discussions in this group and in comp.std.c, I have tried to
point out to the most glaring deficiencies, with some success, since the
committee changed some parts of the standard in the direction I was
proposing, but those are really minimal changes.
jacob