Math

OR Calculator

Compute the bitwise OR of two integers.

Parameters Live Compute
Calculated Output
Result (decimal) 14
Result (binary) 1110
Formula: result bit = 1 if either bit is 1
Step-by-Step Breakdown
1. Values used:
2. a (decimal) = 12
3. b (decimal) = 10
4.
5. Result (decimal) = 14
6. Result (binary) = 1110
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

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).

Frequently Asked Questions

What is OR used for?

Setting specific bits to 1 without disturbing the others.

Advertisement