Click on the numbers in your calculator to test conversions and bitwise operations.
| Dec |
Bin |
Hex |
Oct |
AND (5 & 3) |
OR (5 | 3) |
XOR (5 ^ 3) |
Shift Left (5 << 1) |
Shift Right (5 >> 1) |
| 0 |
0 |
0 |
0 |
1 |
7 |
6 |
10 |
2 |
| 1 |
1 |
1 |
1 |
| 2 |
10 |
2 |
2 |
| 3 |
11 |
3 |
3 |
| 4 |
100 |
4 |
4 |
| 5 |
101 |
5 |
5 |
| 6 |
110 |
6 |
6 |
| 7 |
111 |
7 |
7 |
| 8 |
1000 |
8 |
10 |
| 9 |
1001 |
9 |
11 |
| 10 |
1010 |
A |
12 |
| 11 |
1011 |
B |
13 |
| 12 |
1100 |
C |
14 |
| 13 |
1101 |
D |
15 |
| 14 |
1110 |
E |
16 |
| 15 |
1111 |
F |
17 |
💡 Notes:
- AND / OR / XOR: Enter
5 then 3 with the operator in programmer mode.
- Shift left/right:
5 << 1 = 10, 5 >> 1 = 2.