Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone know the function of the Lsh and Rsh keys in Windows 7 calculator when it is in Programmer's mode. One would think it's meant to shift bits left and right, but that doesn't seem to happen: sometimes nothing happens, other times I get a 'Result not defined' message in the display. Has anyone figured it out yet, is this a known bug?

While we're at it, does anyone have suggestions for a good calculator, one with a decent reference guide / user guide (windows help doesn't seem to give any hints on what any of the keys do, in any mode).

share|improve this question
    
This is in respond to Padu. Think you were using '16' as is. Note that you are in hex mode and '16' is actually hex and not decimal. –  user229327 Jun 5 '13 at 23:55

1 Answer 1

Lsh and Rsh do perform left and right shifts, respecively. 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.

share|improve this answer
    
There is a bug with the shifts in calculator though. Go to hex mode, select DWORD and type in 10000. Now try a shift right of 16. Answer should be 1, but calculator gives 0. In fact it's even more bizarre. Try the same procedure, but shift right by 8 and again by 8... answer is correct. Now try the same number again, but shift right by 12... zero again! I guess whoever programmed this calculator wasn't a programmer :-) –  Padu Merloti Mar 13 '13 at 20:27
1  
Padu, What you are doing is shifting 22 bits right! You are in hex mode remember. ;) –  user255491 Sep 18 '13 at 20:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.