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

7343 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

What is the difference between CISC and RISC?


Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.


What is immediate addressing?


Given an ordered array of integers "V" and a integer "Sum", write a function that would return "true" if it finds two numbers in V that add up to Sum, and "false" otherwise.


We're here to help

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

© MyTutorWeb Ltd 2013–2024

Terms & Conditions|Privacy Policy