POV-Ray : Newsgroups : povray.general : Problems with iterations : Re: Problems with iterations Server Time
31 Jul 2024 08:30:33 EDT (-0400)
  Re: Problems with iterations  
From: SharkD
Date: 10 Jan 2008 16:30:01
Message: <web.47868dd0f1dc5f73d410b38f0@news.povray.org>
"SharkD" <nomail@nomail> wrote:
> I changed my code to the following, but still receive the same erros.
>
> #local radii = 6;
> #local increment = 1/radii;
> #local i = 0;
> #local max = radii * increment;
> #while(i < max)
>  #local i = i + increment;
>  #debug concat("i = ", str(i, 0, -1),"\n")
> #end
>
> If "increment" is indeed stored as a float, shouldn't "6 * increment" evaluate
> to the same number as "increment + increment + increment + increment +
> increment + increment"?

Nevermind.


Post a reply to this message

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