Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

24.2.4 Binary Mathematics

 

· These include standard logic forms such as,

  1. - and/or/add, etc.
  2. - compliments

 

· Negative numbers are a particular problem with binary numbers. As a result there are two common numbering systems use,

  1. - signed binary - the most significant bit (MSB) of the binary number is used to indicate positive/negative
  2. - 2s compliment - negative numbers are represented by complimenting the binary number and then adding 1.

 

· Signed binary numbers are easy to understand, but much harder to work with when doing calculations.

 

· An example of 2s compliments are given below,

 

 

· When adding 2s compliment numbers, additional operations are not needed to deal with negative numbers. Consider the examples below,