VBscript中的(数字和数字) [英] (Number and Number) in VBscript
本文介绍了VBscript中的(数字和数字)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在经典的ASP中有一些VB脚本,如下所示:
I have some VB script in classic ASP that looks like this:
if (x and y) > 0 then
'do something
end if
它看起来像这样工作: (46和1)= 0 和 (47和1)= 1
It seems to work like this: (46 and 1) = 0 and (47 and 1) = 1
我不知道它是如何工作的.有人可以解释吗?
I don't understand how that works. Can someone explain that?
推荐答案
它是按位与.>
47 is 101111
AND 1 is 000001
= 000001
同时
46 is 101110
AND 1 is 000001
= 000000
这篇关于VBscript中的(数字和数字)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文