POV-Ray : Newsgroups : povray.general : Even/odd check? : Re: Even/odd check? Server Time
20 Nov 2024 08:35:12 EST (-0500)
  Re: Even/odd check?  
From: Anders K 
Date: 7 Oct 2001 19:29:45
Message: <3bc0e569$1@news.povray.org>
> > How would you test whether a number
> > was even or odd in POV 3.1?
>
> (N/2=int(N/2))

That looks slow... What about (mod(N, 2) = 0)?

Anders


Post a reply to this message

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