POV-Ray : Newsgroups : povray.beta-test : while bug ? : Re: while bug ? Server Time
30 Jul 2024 18:14:05 EDT (-0400)
  Re: while bug ?  
From: Ron Parker
Date: 10 Oct 2001 08:00:15
Message: <slrn9s8e2f.9hj.ron.parker@fwi.com>
On 10 Oct 2001 05:18:40 -0400, ingo wrote:
>in news:3bc402f7$1@news.povray.org Mael wrote:
>
>> is the1.00 normal ???
>> if we change i=i+0.1 into i=i+0.2 it stops at 0.8
>> 
>
>Same happens in 3.1g

It's roundoff error.  I is probably .9999999 or so for the last iteration,
but it gets rounded for output.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}


Post a reply to this message

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