|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |