我想異或兩個大的二進制值。然而,爲什麼XORing兩個較大的二進制數字會給出十進制輸出?
echo ${hashArray[1]}
echo ${hashArray[2]}
echo $((${hashArray[1]}^${hashArray[2]}))
給出:
10100100000111101011100001101110000110000100001000000111001001100010110000010010111101100110111001111100010010000000010101110111
00001110110000010110101101011011100101101000011100011101001101101010000100110001001110101101111100010001111010100011010000000100
4018181242766406943
爲什麼echo $((${hashArray[1]}^${hashArray[2]}))
輸出的十進制數?它不應該是另一個大的二進制值嗎?
...整數溢出? – nneonneo