floating point Flashcards

1
Q

Converting from FP to denary?

A
  • Convert exponent to denary.
  • If its negative move binary point left (adding 1’s if mantissa is negative and 0’s if its +ve)
  • If its positive move binary point right
  • Convert New mantisa.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Converting from twos comp to binary?

A

starting from the right, leave every bit until the first 1. Then flip all the bits after this 1.

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

Converting from denary to FP?

A
  • Convert to Binary
  • Twos completment this
  • Figure out how much you need to move the BP to get normalised form?
  • Create the exponent of this number (with correct sign, negative number was a fraction, +ve number was >1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the normalised form?

A
  • Positive starts with 0.1
  • Negative Starts with 1.0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

WHy is normalised form good?

A
  • Maximises precision for given number of bits
  • Unique representation of each number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is fixed point used?

A

As it has a larger randge of number in the same number of bits as fixed point representation.

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

What does storing something in excess 127 mode mean?

A

that 127 was added to the exponent before it was stored.

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

LArgest positive number?

A

Matissa : 0.11111 etc

Exponent 01111 etc

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

Smallest positive number

A

mantissa : 0.1000000 etc

exponent: 10000000 etc

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

Largest negative number

A

mantissa : 1.0000000 etc

exponent: 0111111111 etc

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

smallest negative number

A

mantissa : 1.0111111 etc

exponent: 100000 etc

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

Two tpes of rounding error?

A
  • Absolute error
  • Relative error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the relative error?

A

The absolute erro divited by the required value

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

what is the absolute error?

A

The differenc ebetween the actual number and the nearest representable value

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

What is presision?

A

the maximum numbe rof significant digits that can be represented.

(determined by mantissas bits)

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

What does increasing mantissa size, and decreasing exponent bits do?

A

More pression less range

17
Q

what does decreasing mantissa bits, and increasing exponent bits do?

A

Decreases precision, Increases range

18
Q

what is a cancelation error?

A

Adding a small number to a very large number has no effect, as the number of bits storing the mantissa cant record the difference.

19
Q

What is underflow?

A

Where the result of the calculation is too small to be represented in the avalable number of bits, will be stored as 0. Eg dividing a very small number

20
Q

What is overflow?

A

The reult of a calulation is too large to be represented with the avalable bits.

eg multiplying two large numbers.