L
lists
Hi,
I'm trying to figure out how to convert a number by dropping bits
higher than the range that I want. For example, I'd like to convert
248 (0000 0001 0001 1100) into 28 (0001 1100) by converting any bits
over the 8th one into a zero:
000 0001 0001 1100
^^^ ^^^^
Any suggestions?
Thanks,
Ryan
I'm trying to figure out how to convert a number by dropping bits
higher than the range that I want. For example, I'd like to convert
248 (0000 0001 0001 1100) into 28 (0001 1100) by converting any bits
over the 8th one into a zero:
000 0001 0001 1100
^^^ ^^^^
Any suggestions?
Thanks,
Ryan