Difficulty: Medium
Correct Answer: 10010111.11
Explanation:
Introduction / Context:Converting mixed decimal numbers (integer plus fraction) to binary involves two coordinated processes: repeated division by 2 for the integer part and repeated multiplication by 2 for the fractional part. Mastery of both is essential for representing fixed-point values in binary.
Given Data / Assumptions:
Concept / Approach:Split the number into 151 (integer) and 0.75 (fraction). Convert 151 using division-by-2; convert 0.75 by multiplying by 2 repeatedly and recording integer bits produced at each step.
Step-by-Step Solution (Integer):
1) 151 decimal → binary: 151 = 128 + 16 + 4 + 2 + 1.2) Place bits: 2^7=128 → 1; 2^6=64 → 0; 2^5=32 → 0; 2^4=16 → 1; 2^3=8 → 0; 2^2=4 → 1; 2^1=2 → 1; 2^0=1 → 1.3) Integer part = 10010111.Step-by-Step Solution (Fraction):
1) 0.75 * 2 = 1.5 → record 1, keep 0.5.2) 0.5 * 2 = 1.0 → record 1, fraction ends.3) Fractional part = .11.Verification / Alternative check:Reconstruct: 10010111.11₂ = 151 + 0.75 = 151.75, exact.
Why Other Options Are Wrong:
Common Pitfalls:Placing 1s for the wrong powers of 2, or mishandling the fractional multiply-by-2 steps.
Final Answer:10010111.11
Discussion & Comments