BitLShift Function (Usual, Usual)
|
|
将数值中的位向左移动指定的位数,并返回结果值。
如果指定的表达式不是整数,它们在执行操作之前会被转换为整数。
命名空间:
XSharp.VFP
程序集:
XSharp.VFP (在 XSharp.VFP.dll 中) 版本:2.24 GA
Syntax FUNCTION BitLShift(
Arg AS USUAL,
Bits AS USUAL
) AS LONG
public static int BitLShift(
Usual Arg,
Usual Bits
)
Request Example
查看代码Parameters
- Arg
- 类型:Usual
指定要向左移动位的数值。
- Bits
- 类型:Usual
Return Value
类型:
Long
数值型。
BitLShift( )返回指定表达式中的位被移动指定位数后的结果。
备注BitLShift( )不支持可变二进制值。
Examples1x = 5
2y = 1
3? BitLShift(x,y)
See Also