var f:uint;
var e:uint; f=uint.MAX_VALUE;
e=1<<31;
trace(f,e,f&e); //output:4294967295 2147483648 -2147483648 -----> (f&e)!=e
trace(f,e,uint(f&e));//output:4294967295 2147483648 2147483648 -----> (f&e)==e f=uint.MAX_VALUE;
e=1<<30;
trace(f,e,f&e); //output:4294967295 1073741824 1073741824 -----> (f&e)==e
相关文章
- python基础(格式化输出、基本运算符、编码)
- while循环,格式化输出,运算符
- 记录我的 python 学习历程-Day02-while 循环/格式化输出/运算符/编码的初识
- DAY2---Python---While循环,格式化输出,运算符,编码
- while循环,格式化输出,运算符及编码初识
- day02 python流程控制 while循环 格式化输出 运算符 编码
- nn.AdaptiveAvgPool2d——二维自适应平均池化运算
- pytorch cuda 欧式距离 矩阵运算
- 逻辑运算符与(&)、或(|)、非(!)、异或(^)及双与(&&)和双或(||)
- pandas聚合和分组运算——GroupBy技术(1)