OR Operation Calculator:
The bitwise OR operation compares two binary numbers bit by bit and returns 1 if either of the corresponding bits is 1. It’s denoted by the symbol |
and is widely used in binary arithmetic, digital electronics, and programming.
Bit A | Bit B | A | B |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 1 |
To perform a bitwise OR operation:
Let’s take two binary numbers: 1010
and 1100
.
1010 | 1100 ---- 1110
The binary result is 1110, which is 14 in decimal.
No, bitwise OR only works on integers. If you have decimal or fractional values, they must be converted to integers first (typically via truncation or rounding) before applying a bitwise OR.
Our Binary OR Calculator makes it easy to perform bitwise OR between any two binary numbers. Just input your values, click calculate, and see both binary and decimal results along with step-by-step explanation.