- Information
- AI Chat
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Was this document helpful?
This is a Premium Document. Some documents on Studocu are Premium. Upgrade to Premium to unlock it.
Data types Homework 4
Subject: Computer Science
264 Documents
Students shared 264 documents in this course
Degree • Grade:
Sixth Form (A Levels)
• A2 - A LevelWas this document helpful?
This is a preview
Do you want full access? Go Premium and unlock all pages
Access to all documents
Get Unlimited Downloads
Improve your grades
Already Premium?
mework 4 Floating point arithmetic
s
1
Homework 4 Floating point arithmetic
1. A certain computer holds floating point binary numbers using an 8 bit mantissa and a 4-bit
exponent.
(a) Convert the following numbers from floating point binary to denary.
(i) 0.1011100 0011 [2]
(ii) 1.0101101 0101 [2]
(b) Convert the following numbers from denary to normalised floating point binary.
(i) 13.25 [2]
(ii) -13.25 [2]
2. (a) What is the purpose of normalising a floating point binary number? [2]
(b) What is the most negative number that can be held in an 8-bit mantissa and a 4-bit
exponent, expressed as a decimal number? [2]
3. Numbers are stored in a computer system using fixed point binary with 5 places before and
7 places after the binary point.
(a) What is the maximum value that can be held, to the nearest whole number? [1]
(b) Explain what is meant by underflow. Describe a situation in which it could occur. [2]
101.11
exp
=
3
..
5.75
10100.11
exp
=
5
..
-
20.75
=
1101.01
=
01101010
0010
10010110
0010
Reduce
size
taken
and
improve
accuracy.
-
128
127
When
the
value
is
too
small
to
be
expresed
in
the
number
of
bits.
If
a
number
less
than
-
128
is
tried,
underflow
will
occur.