Turn on thread page Beta
    • Thread Starter
    Offline

    10
    ReputationRep:
    How would you convert the denary value 0.0625 into normalised floating point binay using an 8-bit mantissa and a 4 bit exponent?

    My problem is that in order to normalise a positive value, you must move the decimal back or forth until a 0.1 is achieved. In this case, 0.0625, in binary, is:
    00000000.0001

    All help appreciated.
    Offline

    7
    ReputationRep:
    So you currently have 0000.0001 (The number of 0s at the start doesn't matter for now)
    To have a normalised value, you must move the 1 three spaces to the left to get 0000.1000
    So the exponent will be negative three, 1101.
    You would then write this value with an 8-bit mantissa and 4-bit exponent as:
    [0.1000000] and [1101]

    You can check this by multiplying 1/2 (mantissa) by 2^(exponent):
    0.5 * 2^-3 = 1/16 = 0.625
    • Thread Starter
    Offline

    10
    ReputationRep:
    (Original post by FryOfTheMann)
    So you currently have 0000.0001 (The number of 0s at the start doesn't matter for now)
    To have a normalised value, you must move the 1 three spaces to the left to get 0000.1000
    So the exponent will be three, 0011.
    You would then write this value with an 8-bit mantissa and 4-bit exponent as:
    [0.1000000] and [0011]
    Oh right, I didn't think that it was as simple as that. That makes sense, thnk you.
    Offline

    7
    ReputationRep:
    (Original post by badmathkid)
    Oh right, I didn't think that it was as simple as that. That makes sense, thnk you.
    Please note that I made a mistake and had the exponent as positive 3 when it should have been negative! I have now changed this. No problem
    • Thread Starter
    Offline

    10
    ReputationRep:
    (Original post by FryOfTheMann)
    Please note that I made a mistake and had the exponent as positive 3 when it should have been negative! I have now changed this. No problem
    Oh I see, the exponent should have been 1011. Thanks again!
    Offline

    12
    ReputationRep:
    I hate all this mantissa and exponent stuff, it's so easy to make a mistake to get the entire question wrong
 
 
 
The home of Results and Clearing

2,899

people online now

1,567,000

students helped last year

University open days

  1. London Metropolitan University
    Undergraduate Open Day Undergraduate
    Sat, 18 Aug '18
  2. Edge Hill University
    All Faculties Undergraduate
    Sat, 18 Aug '18
  3. Bournemouth University
    Clearing Open Day Undergraduate
    Sat, 18 Aug '18
Poll
A-level students - how do you feel about your results?
Help with your A-levels

All the essentials

The adventure begins mug

Student life: what to expect

What it's really like going to uni

Rosette

Essay expert

Learn to write like a pro with our ultimate essay guide.

Uni match

Uni match

Our tool will help you find the perfect course for you

Study planner

Create a study plan

Get your head around what you need to do and when with the study planner tool.

Study planner

Resources by subject

Everything from mind maps to class notes.

Hands typing

Degrees without fees

Discover more about degree-level apprenticeships.

A student doing homework

Study tips from A* students

Students who got top grades in their A-levels share their secrets

Study help links and info

Can you help? Study help unanswered threadsRules and posting guidelines

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.