I am trying to invert a number and am running into problems.
For example: the number 248
in binary is 11111000
inverted should be 00000111
I have tried using the - operator to flip the bits and the NOT operator as well, both have not given me the results I need. If anyone has any ideas I would really appreciate it. Thanks in advance!
For example: the number 248
in binary is 11111000
inverted should be 00000111
I have tried using the - operator to flip the bits and the NOT operator as well, both have not given me the results I need. If anyone has any ideas I would really appreciate it. Thanks in advance!