当前位置: 首页 > 工具软件 > rsh > 使用案例 >

Lsh and Rsh (左移和右移) _艾孜尔江撰

田德运
2023-12-01

Lsh left shifts the integer part of the displayed value (multiplies it by 2) n times, where n is the next input number, and gives an integer result (base is set to Bin):

10 Lsh 3 = gives 80 (10 multiplied by 2 three times).

10.345 Lsh 3 = also gives 80.


Rsh right shifts the value (performs an integer divide by 2) n times.

16 Rsh 2 = gives 4 (16 divided by 2 twice).

16.999 Rsh 2 = also gives 4.




Reference

 类似资料: