topic: normalised floating point Flashcards

(10 cards)

1
Q

using normalised floating point binary representation using 8 bits for the matisssa and 4 for the exponent, represent the denary value -6.5

(i wrote the full detailed steps on the answer side)

A
  1. write num in 2s complement - by writing it normally then flipping all the binary nums except the first one in the 1/2 column (0110.1 -> 1001.1)
  2. move the point so its between the 01 (1.0011)
  3. the exponent is how many places the point has moved, since it moves 3 to the left the exponent is positive
  4. write 3 using 2s complement (0011)
  5. put it together, making sure the mantissa has 8 bits by fiilling up the right side with 0s and write the exponent next to mantissa (10011000 0011)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Convert the following number from denary to normalised floating point binary (answer to be written as x.xxxxxxx xxxx e.g. 0.1000000 0000) -13.25

A

1.0010110 0100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Convert the following numbers from denary to normalised floating point binary (8 bits for the mantissa, 4 bits for exponent)
13.25

A

0.1101010 0100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The part of the floating point number that represents the significant digits of that number.

A

mantissa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The power to which the number in the mantissa is to be raised.

A

exponent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Convert the following numbers from floating point binary to denary.
1.0101101 0101

A

-20.75

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why are floating point numbers normalised (2)

A
  1. there will be a unique representation for a number, the format will ensure the number is represented with the greatest possible accuracy/ precision
  2. and multiplication is performed more accurately
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

explain trade off between mantissa and exponent

A

the choice will affect size/ range and accuracy
more bits for mantissa means a greater accuracy
however more bits for exponent means greater range and size in the number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Show the denary number −5.25 in floating point binary form representing the mantissa and exponent in two’s complement, using as few bits as possible. Show your working.

A

In fixed point is 1010.11
Mantissa becomes 1.01011
Exponent of 3 / 11
Giving answer of 101011 011

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

convert -13.25 from denary to normalised floating point binary

A

1.0010110 0100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly