P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.
P.S. In case my e-mail is shorter than you enjoy: I am currently trying short replies instead of no replies at all. Please let me know, if you like to read more.
On Fri, May 25, 2012 at 06:37:30PM +0200, Peter Falke wrote:
> by chance I saw a little bug with the 'round()' function.
> I made this test program to chase it down (see also attachment):
i've run your program, but i don't see what you're trying to get at.
negative zero is a typical phenomenon of floating point numbers -- it
exists, but it doesn't hurt, because it acts exactly like 0 for almost
could you explain what bothers you about the output?
a program like openscad could choose to hide that difference by
displaying "-0" as 0, but that would make the subtle cases where 0 is
different from -0 even more difficult to track down, and whoever works
with numbers on a pc needs to be aware of the constraints of floats
btw, please refrain from copy/pasting large code blocks into emails,
especially when you write html mails.
To use raw power is to make yourself infinitely vulnerable to greater powers.
-- Bene Gesserit axiom