加法
"4" + 2 # Gives "42" 4 + "2" # Gives 6 1,2,3 + "Hello" # Gives 1,2,3,"Hello" "Hello" + 1,2,3 # Gives "Hello1 2 3"
对于乘法
"3" * 2 # Gives "33" 2 * "3" # Gives 6 1,2,3 * 2 # Gives 1,2,3,1,2,3 2 * 1,2,3 # Gives an error op_Multiply is missing
这种影响可能会对比较运算符产生隐藏的影响:
$a = Read-Host "Enter a number" Enter a number : 33 $a -gt 5 False