Actionscript 3 是"^&引用;数学的简写。pow()?

Actionscript 3 是"^&引用;数学的简写。pow()?,actionscript-3,actionscript,Actionscript 3,Actionscript,4^2和Math.pow(4,2)之间是否存在差异在Actionscript 3中 4^2和Math.pow(4,2)之间是否存在差异 是的,^是二进制运算符,而Math.pow(x,y)将x提升为y幂 410 ^ 210 == 610 // 01002 xor 00102 == 01102 Math.pow(4, 2) == 16 // 42 == 16

4^2
Math.pow(4,2)之间是否存在差异在Actionscript 3中

4^2
Math.pow(4,2)之间是否存在差异

是的,
^
是二进制运算符,而
Math.pow(x,y)
x
提升为
y

410 ^ 210 == 610 // 01002 xor 00102 == 01102

Math.pow(4, 2) == 16 // 42 == 16