Thank you for your response. It surely helped me to better understand this subject. My research into this, including my question to you went into building a class that manipulates bits in Long integers and Currency variables. The result can be found here:

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=74641&lngWId=1

If you get a chance to look at it, and comments, criticisms or improvements would be welcome. I am still looking for ways to improve it.

Thanks again, Bob

]]>When the sign bit is a 1 then the number is negative. in binary negative numbers are a little different. To figure out the value you treat the 0’s as 1’s and vice versa.

So for a signed 8bit number 10000000 = -127 while 11111110 = -1

Hope this helps.

]]>Thanks,

Bob

thanks!!!!!!!!!!!!

]]>