Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

3. Fixed-point numbers a) [10 marks] A fixed-point binary number system has \'m\

ID: 3785300 • Letter: 3

Question

3. Fixed-point numbers

a) [10 marks] A fixed-point binary number system has 'm' whole bits and 'n' fractional bits. What is the range of numbers represented, assuming an unsigned format? Does every binary rational in this range have a finite decimal expansion? ___ (yes/no) Justify your answer.

b) [10 marks] A fixed-point binary number system has 4 whole bits and 12 fractional bits. Represent the decimal fractions 0.75, 0.3, and 1/20 in this format. Recipe: Deal with the integer part separately. Now, take the fractional part, multiply by 2, record the integer part as one digit of your answer, and repeat until the fractional part is 0, or you run out of binary digits. Practice on 0.6875 = 11/16 = (0000.101100000000)---or just (0.1011). Do not round. Show answers in hexadecimal.

Explanation / Answer

a)

For assuming an unsigned format integer 3 bits allocated for integer part and 12 bits for fractional part.
Yes, for every binary rational number we have a finite decimal expansion. It will depend on how many bits we are representing. As system takes only definite bits , there will be definitely finite decimal expansion.

b)

0.75 -> 0.11000000 --> 0.C0000000

0.3 --> 0.01001101 -> 0.4CCCCCCD

1/20 --> 0.00001101 --> 0.0CCCCCCD

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote