next up previous
Next: Sign-Magnitude Up: Data Representation Previous: Data Representation

Integers

Non-negative integers can be represented using weighted, positional binary notation. Such numbers are called unsigned.

An (n+1) bit unsigned number has the general form:

displaymath1309

which represents the integer:

displaymath1310

The range of values for an (n+1) bit unsigned integer is from 0 to tex2html_wrap_inline1313 .

Signed integer values are represented in several different ways including sign-magnitude, one's complement, two's complement, biased representation.

How the numbers will be used and the arithmetic operations to be performed determine the best representation.





Mitch Roth
Wed Oct 9 13:38:30 ADT 1996