Skip to content

Commit fef2aa7

Browse files
committed
Update README.
1 parent e36c441 commit fef2aa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/algorithms/math/bits/README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
#### Get Bit
44

5-
This method shifts the relevant bit to the zeroth position. Then we perform 'AND' operation with one which has bit pattern like '00001'. This clears all bits from the original number except the relevant one. If the relevant bit is one, the result is '1', otherwise the result is '0'.
5+
This method shifts the relevant bit to the zeroth position.
6+
Then we perform `AND` operation with one which has bit
7+
pattern like `0001`. This clears all bits from the original
8+
number except the relevant one. If the relevant bit is one,
9+
the result is `1`, otherwise the result is `0`.
610

711
> See `getBit` function for further details.
812

0 commit comments

Comments
 (0)