|
![](/i/fill.gif) |
Wow, that was it. Problem fixed, thanks.
-Chris-
Margus Ramst <mar### [at] peak edu ee> wrote in message
news:3937FD1B.D6427D09@peak.edu.ee...
> "Chris S." wrote:
> >
> > error: no matching } in sphere_sweep, < found instead
> >
>
> It is a float precision problem (in decrementing of Next by 0.1). Because
of it
> your loop goes through 11 iterations instead of 10. It' will work fine if
you
> change Next to 10 and decrement it by 1 insted of 0.1
> Note that this is not a bug; floating point math is just not infinitely
precise,
> and 0.1 is a problematic number, since it can't be presented accurately in
> binary notation (just like 1/3 in decimal).
>
> --
> Margus Ramst
>
> Personal e-mail: mar### [at] peak edu ee
> TAG (Team Assistance Group) e-mail: mar### [at] tag povray org
Post a reply to this message
|
![](/i/fill.gif) |