Hi All:

I'd like to know how to assign a 2's compliment binary number to a variable (sorry I totally forgot how to do that)

For instance, I'd like to assign the number 5

5 in Binary is: 000101
5 in 2's Comp is: 111011

Can some please help me with this?

Thanks a lot