OR Calculator

Compute the bitwise OR of two integers.

Result (decimal) 14
Result (binary) 1110

Formula: result bit = 1 if either bit is 1

Step-by-step with your numbers:
1. Values used:
2. a (decimal) = 12
3. b (decimal) = 10
4.
5. Result (decimal) = 14
6. Result (binary) = 1110
Did we solve your problem today?

Bitwise OR sets a 1 wherever either input has a 1.

The math behind it

Compare the numbers bit by bit; each output bit is 1 if at least one corresponding input bit is 1.

Worked example

12 (1100) OR 10 (1010) = 14 (1110).

FAQ

What is OR used for?

Setting specific bits to 1 without disturbing the others.