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:

displaymath2758

which represents the integer:

displaymath2759

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

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.





CS 301 Class Account
Mon Sep 13 11:15:41 ADT 1999