02+Number+Systems+II
Computer Architecture and Number Systems Overview
In computer architecture, hardware registers and memory cells are grouped into fixed bit-widths to store numerical data.
Most standard computer architectures utilize cells (bytes) as the fundamental baseline unit of storage.
Larger data types and higher memory capacities are formed by grouping multiple cells together, such as , , or words.
Numerical values stored in memory are broadly categorized into unsigned binary representations (which handle strictly non-negative quantities) and signed binary representations (which handle both positive and negative quantities using systems such as Sign and Magnitude, 1's Complement, and 2's Complement).
Unsigned Binary Representation
An unsigned binary number system represents strictly non-negative numbers ( and positive integers).
Because no bits are allocated to store a sign, all available bit positions contribute directly to the magnitude of the number.
Generalization of Unsigned Bit Range:
For a given cell size of bits, the smallest representable value is always (represented as consecutive zeros).
The largest representable value occurs when all bits are set to , which equals .
The total number of distinct numerical values that can be stored using bits is
For an cell ():
Smallest value:
Largest value:
Total unique combinations:
Complete numerical range: to
Conversion Examples between Decimal and Unsigned Binary:
Example 1: Convert to Binary
Integer part ():
remainder
remainder
remainder
remainder
remainder
remainder
remainder
Reading remainders bottom-to-top gives $$10