Related Concepts: 02 Base Complements & Non-Decimal Arithmetic | 03 The 8-Bit Two’s Complement Problem | 01 BCD & Weighted Digital Codes

1.01 Advanced Base Conversions

Concept Overview: Base Conversions

Converting a number from decimal to any target base {radix } requires splitting the number into two distinct components: the integer part and the fractional part.

  • Integer Part: Computed via successive division by the target base , recording the remainders from bottom (MSB) to top (LSB).
  • Fractional Part: Computed via successive multiplication by the target base , recording the integer carries generated from top to bottom.
graph TD
    Input[Decimal Number N] --> Split{Split Number}
    
    Split -->|Integer Part| IntDiv[Successive Division by Base r]
    IntDiv --> CollectRem[Collect Remainders Bottom to Top MSB to LSB]
    
    Split -->|Fractional Part| FracMult[Successive Multiplication by Base r]
    FracMult --> CollectInt[Collect Integer Carries Top to Bottom]
    
    CollectRem & CollectInt --> Combine[Combined Base-r Result]

1. Decimal to “Unusual” Bases (Base-3, Base-4, Base-7, Base-12)

While standard conversions to binary, octal, and hexadecimal are common, term exams heavily test conversions to non-standard bases {such as base-3, base-4, base-7, and base-12}.

Major Exam Problem: Convert to Base-4 and Base-7 (2015, 2016, 2022, 2023, 2025)

Part A: Converting to Base-4

Step 1: Integer Part () — Successive Division by 4

Step 2: Fractional Part () — Successive Multiplication by 4


Part B: Converting to Base-7

Step 1: Integer Part () — Successive Division by 7

Step 2: Fractional Part () — Successive Multiplication by 7


2. Hexadecimal Fractions to Decimal, Octal, and Binary

Converting between Hexadecimal (), Octal (), and Binary () is accomplished by grouping binary bit patterns directly.

Major Exam Problem: Convert to Binary, Octal, and Decimal (2015, 2017, 2025)

graph LR
    Hex[Hexadecimal 2AC5.D] -->|4-Bit Expansion| Binary[Binary 0010 1010 1100 0101 . 1101]
    Binary -->|3-Bit Grouping| Octal[Octal 25305.64]
    Hex -->|Polynomial Expansion| Decimal[Decimal 10949.8125]

Step 1: Hexadecimal to Binary (4-Bit Expansion)

Expand each Hex digit into its 4-bit binary equivalent using positional weights ():

Step 2: Binary to Octal (3-Bit Grouping)

Group the binary bits into 3-bit clusters starting outward from the binary point:

  • Integer Grouping (Left of point):
  • Fractional Grouping (Right of point):

Step 3: Hexadecimal to Decimal (Polynomial Expansion)

Multiply each digit by its positional weight ():


3. Fractional Binary Equivalence & Precision Analysis

Major Exam Word Problem: The "2/3" Fraction Analysis (2021, 2023)

Question: Calculate the binary equivalent of out to eight places. Convert the binary result back to decimal. How close is the result to ? Convert the binary result into hexadecimal, then convert that result to decimal. Is the answer the same?

Solution:

Part A: Binary Equivalent of to 8 Places

Decimal Multiply the fraction by successively:

Part B: Convert Binary back to Decimal & Quantify Error

  • Precision Loss (Error Calculation):

Part C: Convert Binary to Hexadecimal & Back to Decimal

  • Group the 8-bit binary fraction into 4-bit nibbles:

  • Convert Hexadecimal to Decimal:

  • Conclusion: Yes, the converted decimal answer () is identical!

Concept Resolution: Why doesn't Binary-to-Hex conversion lose precision?

Converting between Binary, Octal, and Hexadecimal does not cause any precision loss. This is because their bases (, , and ) are exact powers of one another. We simply regroup bits (3-bit or 4-bit clusters) without truncation or approximation.

However, converting from a decimal fraction to binary can lose precision. A fraction that terminates in decimal (like ) does not terminate in binary () because has prime factors of and , whereas binary can only represent denominators that are powers of . Truncating a repeating binary fraction to a finite number of bits (like 8 places) is what causes the precision loss.


Past Year Questions (PYQs)

  • [PYQ 2015, 2016, 2022, 2023, 2025]: Convert integer/fraction decimals to base-3, base-4, base-7, base-12.
  • [PYQ 2015, 2017, 2025]: Convert hexadecimal with fractions to decimal, octal, binary.
  • [PYQ 2021, 2023]: Calculate binary equivalent of fractions (e.g., out to 8 places) and verify accuracy through hex conversions.