About this binary calculator
Binary arithmetic works like decimal with only 0 and 1: 1 + 1 = 10, carry the 1. So 1011 (11) + 110 (6) = 10001 (17). The calculator uses exact big-integer arithmetic, so 64-bit and longer values never lose digits, and shows the answer in every base. Bitwise AND, OR and XOR compare the numbers bit by bit, and << and >> shift them: 1011 << 2 = 101100, which is × 4. A negative result is also shown as 8, 16 and 32-bit two’s complement.