# Normalised Floating Point Binary...Watch

Announcements
#1
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.
0
1 year ago
#2
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
1
#3
(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.
0
1 year ago
#4
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
0
#5
(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!
0
1 year ago
#6
I hate all this mantissa and exponent stuff, it's so easy to make a mistake to get the entire question wrong
0
X

new posts
Back
to top
Latest
My Feed

### Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

### See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

### University open days

• University of Bristol
Wed, 23 Oct '19
• University of Exeter
Wed, 23 Oct '19
• University of Nottingham
Wed, 23 Oct '19

### Poll

Join the discussion

Yes I know where I'm applying (153)
59.53%
No I haven't decided yet (59)
22.96%
Yes but I might change my mind (45)
17.51%