Op Thu, 12 Oct 2006, schreef ???:
> "Format" primarily produces strings for users, not for programmers.
Why do you think that scientific notation is used by default?
Daniël___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://
> http://en.wikipedia.org/wiki/Negative_zero
> Jonas
Nice link: "In science, −0 may be used to denote a quantity which is less
than zero, but which is too small in magnitude to be rounded down to −1."
"Format" primarily produces strings for users, not for programmers.
___
velopers' list"
Sent: Thursday, October 12, 2006 3:46 PM
Subject: Re: Re[2]: [fpc-devel] format function
On 12 okt 2006, at 15:41, Пётр Косаревский wrote:
In the othe case, if the user is supposed to understand, that he looks at
some representation of binary representation of a re
On 12 okt 2006, at 15:41, Пётр Косаревский wrote:
In the othe case, if the user is supposed to understand, that he
looks at some representation of binary representation of a real
number, "-0.000" obviously means "little negative number".
No, it means the value 0, but with a negative sign.
> >> Not only that, but -0.000 is different from 0.000 (at least for the fpu)
> >> Jonas
> > In a mathematical way of view I think that -0.000 has no meaning.
> Well, despite the fact that -0.000 is probably indeed wrong in this case, a
> mathematical view is often wrong when using an fpu :)
> > If