找回密码
 加入
搜索
查看: 7169|回复: 0

[BUG报告] [翻译有误]关于函数bitrotate()的位移问题~~

[复制链接]
发表于 2012-9-26 21:46:15 | 显示全部楼层 |阅读模式
本帖最后由 annybaby 于 2012-9-26 21:47 编辑

虽然细心点看的话,用户可以自己发现,但还是想提出来~~


函数参考

--------------------------------------------------------------------------------

BitRotate
执行位移操作, 使用旋转法. 


BitRotate ( 值 [, 位移 [, 大小]] ) 



参数
值 要被操作的值.
位移 [可选参数] 要左移(转)的位 (数为右移). 如果未指定, 默认为 1.
大小 [可选参数] 一个决定旋转大小的字符串, 默认为 (16 位/bits). 参考下文.
官方原文为
value The number to be operate on.
shift [optional] Number of bits to rotate to the left (negative numbers rotate right). If not given, the default is 1.
size [optional] A string that determines the rotation size, the default is (16 bits). See below.


汉化文档多个版本都有未有改正

代码测试
Local $x = BitRotate(4,1)
MsgBox(0,0,$x)

显示结果为8,显然,操作是向左移了1位,使值*2才等于8
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-26 19:40 , Processed in 0.066479 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表