POV-Ray : Newsgroups : povray.advanced-users : Stepped loop values and mod() : Stepped loop values and mod() Server Time
20 Apr 2024 06:31:09 EDT (-0400)
  Stepped loop values and mod()  
From: Bald Eagle
Date: 2 Aug 2018 19:20:00
Message: <web.5b63908a86504b73458c7afe0@news.povray.org>
I ran into one of those things.
Again.

take a look at:

#for (T, 0, 100, 0.1)
 #debug concat (str(T, 3, 16), "\n")
#end

Around the 13th decimal place there starts to be some > N.0 behaviour which
throws off looking for the regular integer occurrences with mod (N, 1)

I'm curious why it's not in actual even steps of N.10000000000000000000.... out
to however many places POV-Ray numbers go.


Post a reply to this message

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