POV-Ray : Newsgroups : povray.beta-test : Doc Error for mod? : Re: Doc Error for mod? Server Time
30 Jul 2024 10:23:46 EDT (-0400)
  Re: Doc Error for mod?  
From: Anders K 
Date: 23 Nov 2001 12:16:20
Message: <3bfe8464$1@news.povray.org>
> The docs refer to mod(A, B) as:
> Formula is mod=((A/B)-int(A/B))*B
>
> Shouldn't that be:
> Formula is mod=A-(int(A/B)*B)

Those formulas are exactly the same. (A/B)*B = A.


Post a reply to this message

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