|
![](/i/fill.gif) |
In article <3ca10568@news.povray.org> , "Rune" <run### [at] mobilixnet dk>
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] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |