If I have the first byte of an int set to 00111011, where the last two ones are flags, how do I get the first 6 numbers and then convert them to a number so I can print it out. EX:
I have 00111011 and I want to get the 001110 out of it, and change that to its own number, without getting/changing the last two ones. I hope this doesn't seem too complicated. Thanks!