Computer Number Systems
Fundamentals of Number Systems
Definition: A mathematical notation for representing quantities using a consistent set of symbols (digits) and rules.
Positional System: The value of each digit depends on both the digit itself and its position (place) within the number. Each position corresponds to a power of the system's Base (Radix).
Non-Positional System: Each symbol carries a fixed absolute value regardless of its position. Total value is determined by adding the symbol values.
Bit: A single binary digit ( or ), which is the fundamental unit of storage in digital computers.
Non-Positional Systems and Roman Numerals
General Characteristics: No concept of zero as a placeholder; extremely cumbersome for arithmetic and computation.
Roman Numerals Symbols: , , , , , , .
Subtractive Notation: Smaller values placed before larger values are subtracted (e.g., , , , ).
Limitations: Large numbers are unwieldy (e.g., ) and fractions are impossible to represent easily.
The Positional Formula
General Expansion:
Fractional Expansion:
Variables: represents the base (radix) and represents the digit at a specific position.
Computer Number Bases
Decimal (Base 10): Uses digits -. It serves as the universal reference point for human-computer interaction.
Binary (Base 2): Fundamental computer language representing high () and low () voltage states.
Octal (Base 8): Uses digits -. Historically used as shorthand in Unix/Linux systems. .
Hexadecimal (Base 16): Uses digits - and letters - (). Used for memory addresses, color codes (), and MAC addresses. .
Conversion Methodologies
To Decimal: Multiply each digit by its positional weight () and sum the results.
Decimal to Integer: Successive division by the target base; read remainders from BOTTOM to TOP.
Decimal to Fraction: Successive multiplication by the target base; read integer carries from TOP to BOTTOM.
Binary Shortcuts:
To Octal: Group bits in threes from the right.
To Hex: Group bits in fours from the right.
Key Limits:
. Max value: .
. Max value: .
Questions & Discussion
Q: Convert Roman Numeral to Decimal.
A: .
Q: What is the binary equivalent of ?
A: Successive division yields .
Q: Convert to decimal.
A: .
Q: What is the octal equivalent of binary ?
A: Grouped as , resulting in .
Q: Convert the pixel color to decimal components.
A: Red: ; Green: ; Blue: .