Take the compliment and then add one. On Tue, 7 Mar 2000, Werner Soekoe wrote: > Hi > > I'm looking for the way to calculate what the Two's > Complement of a value will be. Can anyone help me? > For instance: > > 8-bit value: > 01101110 > 10010001 (Inverted) > > But this is not two's complement yet!? What Next? > > Can somebody maybe also solve this one: > 16-Bit value: > 01011100 11110110 > 10100011 00001001 (Inverted) > > Thanks!!! > > Werner Soekoe > IS Manager > Free State Legislature > wsoekoe@global.co.za > Tel. +27 (51) 407 1109 > Fax. +27 (51) 407 1137 > Cell. +27 82 376 8383 > Jeffrey D. Spears University of Michigan College of Engineering ``Double-E, can't spell gEEk without it!'' -Captain Gerald M. Bloomfield II, USMC (my brother)