Skip to content

Commit 861415c

Browse files
committed
Updated bits readme
1 parent d727b3c commit 861415c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/rampatra/bits/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| 0 | 0 | 0 |
1010
| 0 | 1 | 0 |
1111
| 1 | 0 | 0 |
12-
| 1 | 1 | 1 |
12+
| 1 | 1 | 1 |
1313

1414
**OR:**
1515

@@ -38,7 +38,7 @@
3838

3939
> 00000001 << 3 = 00001000 (only showing 8 bits)
4040
41-
### 2. Right Shift:
41+
#### 2. Right Shift:
4242

4343
**Two types:**
4444

@@ -50,15 +50,15 @@
5050
5151
-64 >> 2 = -16
5252

53-
111000000 >> 2 = 11110000
53+
> 111000000 >> 2 = 11110000
5454
5555
**b. Unsigned Right Shift (>>>):**
5656

5757
64 >>> 2 = 16
5858

59-
001000000 >>> 2 = 00010000
59+
> 001000000 >>> 2 = 00010000
6060
6161
-64 >>> 2 =
6262

63-
111000000 >>> 2 = 00010000
63+
> 111000000 >>> 2 = 00010000
6464

0 commit comments

Comments
 (0)