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

BW
Answered by Brendon W. Computing tutor

8343 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

A computer stores floating point numbers of size 1 byte, with 3 bits for the mantissa and 5 bits for the exponent. State what the effects would be on the stored numbers if instead 5 bits were used for the mantissa and 3 bits were used for the exponent.


In a computer program, a parameter may be passed to a procedure by value. Explain how this method works.


Describe two's complement.


What is the difference between CISC and RISC?


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–2025

Terms & Conditions|Privacy Policy
Cookie Preferences