Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fef2aa7

Browse files
committedJul 4, 2018
Update README.
1 parent e36c441 commit fef2aa7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/algorithms/math/bits/README.md

Lines changed: 5 additions & 1 deletion
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)