Represent the denary number 5.625 as an unsigned binary fixed point number with three bits before and five bits after the binary point.

The questions asks us to use 3 bits before the point and 5 points after. When answering these kinds of questions we can keep the decimal point in our answer, so let's start with this: 000.00000 With these questions we can treat it as LHS + RHS, or in this concrete example, 5 + 0.625. The left hand side we treat as a normal integer (whole number) and the right hand side our fraction. 5 in binary is 101. We now have 101.00000 and need to add our 0.625 to the RHS! So in integer binary we have (bit)(bit)(bit)(bit). where each bit represents 8, 4, 2 and 1 (respectively). In fractional binary we have it so that if we had .(bit)(bit)(bit)(bit) it would ascend from 1/2. So in this 4-bit case each bit would represent 1/2, 1/4, 1/8 and 1/16 (respectively). Notice how the denominator doubles each time. To recap, if we have 101.01000 we would have 5.25 because 5.25 = 4 + 1 + 1/4. So how do we create 0.625? Simply use 0.5 + 0.125, which is 1/2 + 1/8. Therefore, our answer will be 101.10100

Answered by Brendon W. Computing tutor

8150 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Describe the process of a binary search.


Explain how a stack could be used in the process of evaluating an expression in Reverse Polish notation.


How does a HDD (Hard drive disk) work?


Describe an advantage of using vector graphics instead of bitmaps to represent images.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences