POV-Ray : Newsgroups : povray.newusers : Isosurfaces meet and cause Artifacts : Re: Isosurfaces meet and cause Artifacts Server Time
2 Nov 2024 15:26:01 EDT (-0400)
  Re: Isosurfaces meet and cause Artifacts  
From: Warp
Date: 30 Jan 2004 05:29:23
Message: <401a3203@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
> This is a faq wot I wrote on floats - feel free to point out any obvious errors.
> (I was inspired to write it when I found a customer storing social-security
> numbers as floats!)

  You might also tell something about comparing floating point numbers
and why for example the comparison sqrt(100)=10 will probably return
false.

  By the way, you could also say "in computer languages there's usually
a shortcut for writing '*10^' by writing 'e' instead. That is, for
example 1234*(10^12) can be written as 1234e12". Then from that point
forward you can use the e-syntax instead of the *10^ one for clarity.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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