在ASP中,位运算符左移和右移 [英] In ASP, Bit Operator Left shift and Right shift

查看:97
本文介绍了在ASP中,位运算符左移和右移的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道左移和右移运算符样本吗?我是ASP的新手.我发现只有与",或",非"之类的位运算符.

Does anyone know left shift and right shift operator sample's? I'm new in ASP. I found Bit operators such as AND,OR,NOT only..

推荐答案

对于vbscript,左移是通过乘法完成的(即var * 2左移一个位置,var * 4左移两个位置,依此类推)和右移移位是通过除法完成的(即var \ 16右移四个位置).

For vbscript, left shift is accomplished by multiplication (i.e., var * 2 left shifts one position, var * 4 lefts shifts two positions, etc.) and right shift is accomplished by division (i.e., var \ 16 right shifts four positions).

这篇关于在ASP中,位运算符左移和右移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆