POV-Ray : Newsgroups : povray.general : INQUIRY: How to Get After-Period Value : Re: INQUIRY: How to Get After-Period Value Server Time
25 Apr 2024 10:44:54 EDT (-0400)
  Re: INQUIRY: How to Get After-Period Value  
From: Kenneth
Date: 2 Apr 2018 19:15:01
Message: <web.5ac2b85f36b91578a47873e10@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>
>
> mod(A,B) Value of A modulo B. Returns the remainder after the integer division
> of A/B. Formula is mod=((A/B)-int(A/B))*B.
>
> So, I'm guessing mod(A, 1) gives you the remainder.
>
> ((1.25/1) - 1) = 0.25, times 1 = 0.25

Yeah, mode(A,B) was as close as I could find to such a function... but I didn't
work it out. It looked... complicated :-P

Nice.


Post a reply to this message

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