POV-Ray : Newsgroups : povray.newusers : rounding : Re: rounding Server Time
28 Jul 2024 22:16:13 EDT (-0400)
  Re: rounding  
From: andrel
Date: 3 Jul 2008 18:57:51
Message: <486D59A5.4050308@hotmail.com>
Alain wrote:
> andrel nous illumina en ce 2008-06-29 18:32 -->
> 
>> yes (except perhaps on very old equipment that had a sign bit and not 
>> 2s-complement), but that does not stop people from expecting that
>> floor(-x+.5)==-floor(x+.5) everywhere.
> 
> That expectation come from the fact that many peoples considere 0 to be 
> smaler than -1, whitch is false. Many peoples have the tendency of 
> ignoring the sign when quickly comparing values, only concidering the 
> absolute value instead of the real one.
> 
I don't think so. Anyway, this example did not express what I meant :(

BTW one reason for thinking that there may be a reason why people expect 
round(-3.5) to be -4 is that Matlab thinks so too.


Post a reply to this message

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