use of Lsh and Rsh keys in windows 7 calculator
Solution 1:
Lsh
and Rsh
do perform left and right shifts, respectively. After pressing the button, you need to specify the number of binary digits you would like to shift the number. See "What do all the buttons do?" here for more info.
Solution 2:
It's not so much a bug as a misunderstanding of us users. (I think the programmers of Calculator had a hand in this too.)
If you are in hex mode, I found the number you type in after pressing the Lsh key is a hex number, not a decimal number.
For example, if you want to shift a bit 23 decimal places to the left, one would expect you to enter a 1, then press Lsh, then type 23. But what really happens is it gets shifted 35 bits (23h = 35 decimal.)
So, if you really want to shift 23 decimal bits the magic number to enter (after pressing the Lsh key) is 17.
I beat my head against this for a couple of hours till I accidentally hit Lsh 10 once and got a shift of 16.
A workaround is to enter the number in hex mode, switch to decimal mode, press the Lsh (or Rsh) key, enter the decimal number of bits to shift, (then = of course) then switch back to hex mode.
What a PITA.
Mark.