Representing Integers on Computers

A two state value (bit) is convenient to implement in electronics.

Hence the almost universal use of binary representation for integers.

Binary representation of unsigned integers is straightforward: use one bit per digit.

The need to represent negative numbers creates choices.

Index