Lsh and Rsh (左移和右移)

网友投稿 261 2022-09-20

Lsh and Rsh (左移和右移)

​​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​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:UE 语言基础之代码规范
下一篇:C#实现乘幂函数
相关文章

 发表评论

暂时没有评论,来抢沙发吧~