POV-Ray : Newsgroups : povray.programming : Surprising change in speed of comparison operators : Re: Surprising change in speed of comparison operators Server Time
18 May 2024 05:35:36 EDT (-0400)
  Re: Surprising change in speed of comparison operators  
From: Ilya Razmanov
Date: 2 May 2024 11:23:47
Message: <6633b003$1@news.povray.org>
On 02.05.2024 12:49, jr wrote:
> hi,
> 
> Ilya Razmanov <ily### [at] gmailcom> wrote:
>> ...
>>> #if (walkability [a][b] != unwalkable)
>>> ...
>> Sorry for a stupid question, is there a way to use some !> instead of <=
>>
>> ?
> 
> 
> unsure I understand '!>' correctly, meaning "not greater" ?  if so, then that is
> just another way of saying "less than", ie '<' (saving two keystrokes :-)).

"Not greater" is "less or equal" actually ;-) I'm just suggesting trying 
to do it some other way (different branch of "if" or something) and see 
what happens. Yes, I know that from math point of view it's the same, 
I'm suggesting to evaluate prog point of view ;-)

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message

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