POV-Ray : Newsgroups : povray.beta-test : initial_clock / final_clock behaviour : Re: initial_clock / final_clock behaviour Server Time
30 Jul 2024 00:17:15 EDT (-0400)
  Re: initial_clock / final_clock behaviour  
From: Thorsten Froehlich
Date: 27 Mar 2002 03:02:42
Message: <3ca17ca2@news.povray.org>
In article <3ca10568@news.povray.org> , "Rune" <run### [at] mobilixnetdk>
wrote:

> No. I know that floating points are exponentially based, and I know they
> have precision limited to about 16 digits of precision in base 10. But in my
> code the multiplication with 1000000 made a difference, as I have explained,
> and which you can test on your own.

Hmm, maybe I still failed to explain it.  The precision refers to the total
number of precise digits let or right of the comma:

You intentionally "break" the comparison operator.  Your number then has *19*
digits, which is basically above the precision available.  If you do
comparisons on numbers this way the internal EPSILON is not big enough and you
need to do "fix" it yourself by rounding.  It has nothing to do with the
calculation (assuming the precision bug in the animation loop is fixed).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.