POV-Ray : Newsgroups : povray.advanced-users : Negative division : Re: Negative division Server Time
29 Jul 2024 08:19:24 EDT (-0400)
  Re: Negative division  
From: Andrew Coppin
Date: 10 Mar 2003 16:43:48
Message: <3e6d0714@news.povray.org>
Oh my God, what have I created...

Well, of course, div and mod could give me any pair of numbers such that you
can reconstruct the originals! Of course, letting mod be larger than the
denominator would seem a little silly from a practical point of view, but
yes, I am aware that there are two equally valid ways PR could handle this -
which is why I asked!

I too would have liked to find that it does it the other way round - because
I wanted to use mod() to reduce all integer values into the range 0 - (n-1).
Never mind!

Andrew.



Post a reply to this message

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