Subject: bug#43764: Calc shift right broken

From: Mattias Engdegård <[email-masked]>
Date: Fri, 2 Oct 2020 22:49:07 +0200

This actually works as designed; see the Calc manual. In short, Calc maintains a 'word size' and clips all results of binary operations to that size. Apparently, Calc clips the argument for good measure before even performing the right-shift. The default word size is 32 bits; you can change it using "b w".

Whether this is the best design can be debated, of course. Tell us if you are happy with this explanation, or if you think it should work in a different way. (Can't promise any major changes, though.)

A very modest reform would be to set the default word size to 64 bits, to keep up with the times.