& 运算

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
原文地址:https://www.cnblogs.com/kingBook/p/6297624.html