Calcolatore Binario
Esegui operazioni aritmetiche con numeri binari. Addizione, sottrazione, moltiplicazione.
Sum Val
57
Diff Val27
And Val10
Or Val47
Xor Val37
Formula
Binary Arithmetic
Bitwise Operations
Example: 42 AND 15
Bitwise operations work on individual bits of the binary representation.
Esempio Risolto
Binary operations on 42 and 15.
- 0142 + 15 = 57
- 0242 - 15 = 27
- 0342 AND 15: 101010 AND 001111 = 001010 = 10
- 0442 OR 15: 101010 OR 001111 = 101111 = 47
- 0542 XOR 15: 101010 XOR 001111 = 100101 = 37
Domande Frequenti
What are bitwise operations?
Bitwise operations work on individual bits of binary numbers. AND, OR, and XOR compare corresponding bits of two numbers.
Where are bitwise operations used?
In programming for flags/permissions, network subnet masks, graphics, encryption, and low-level hardware communication.
What is XOR?
XOR (exclusive or) returns 1 when the bits are different and 0 when they are the same. It is used in encryption and error detection.
Impara