How can we check whether the n.th bit of an integer number is 1 or 0?
For example, is the 5th bit of 127 a 1 or a 0?
Can you help us how can we check this?
Thank you very much for your interest.
There is a bitwise AND block in the math section.
Calculate bitwise AND of 2^n , x to get the nth bit from the right.
2 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.