POV-Ray : Newsgroups : povray.beta-test : while bug ? : Re: while bug ? Server Time
4 Nov 2024 17:29:11 EST (-0500)
  Re: while bug ?  
From: Ron Parker
Date: 10 Oct 2001 08:54:04
Message: <slrn9s8h7d.9kj.ron.parker@fwi.com>
On Wed, 10 Oct 2001 14:50:11 +0200, Mael wrote:
>ok, thank you, it's clear.. we can't trust computers for maths :)

The problem is that .1 in decimal is a repeating fraction in binary, so it
can never be represented precisely,  just as 1/3 is a repeating fraction in
decimal (but terminates in base 3.)

-- 
#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.