next up previous contents
Next: Integers in Memory Up: Computer Representation of Numbers Previous: The Memory Model   Contents

Reprentation of Signed Integers

binary digits (bits) of memory can store different numbers. They can be positive integers between and . For example, using bits, we can represent any integer between and .

If we want to represent signed integers (i.e. both positive and negative numbers) using bits, we can use one of the following methods:

The first bit is 0 for negative numbers, and 1 for nonnegative numbers.



Subsections
next up previous contents
Next: Integers in Memory Up: Computer Representation of Numbers Previous: The Memory Model   Contents
Adrian Sandu 2001-08-26