floating point form Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is fixed point binary

A

when the numbers have a predetermined number of bits before and after the point

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

advantages of fixed point

A

makes numbers easier to process

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

disadvantages of fixed point

A

they cannot represent the range or accuracy of numbers that may be required

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

what are floating point numbers

A

when the number is expressed in m x 10^n where m is known as the mantissa and n is the exponent

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

if the number is positive, what should it start with, in floating point form

A

01

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

if the number is negative, what should it start with in floating point form

A

10

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

what does it mean for a number to be normalised

A

it either starts with 10 or 01

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

what does the mantissa do

A

scales the mantissa by a power of two

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

floating point formula

A

FloatingPoint=Mantissa×2
^Exponent

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

why is normalisation important

A
  • ## ensures that the floating point number is stored in a consistent format, maximizing precision
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

floating vs fixed point : range

A

fixed point - Limited to a specific range based on the fixed number of digits for the integer part.

floating point - has a large range due to the scaling by the exponent

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

floating point vs fixed point : speed

A

fixed point - Faster in simple hardware (e.g., embedded systems) since the calculations are straightforward.

floating point -
Slower because floating point operations involve more complex calculations (e.g., adjusting the exponent).

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

uses of fixed vs floating point

A

Fixed point: Good for applications where speed is important and the range of values is small (e.g., financial systems).

Floating point: Better for representing a wide range of values but more complex in terms of calculations (e.g., scientific calculations, graphics processing).

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

what is an absolute error

A

The difference between the exact value and the approximate value stored in the system.

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

what is a relative error

A

The absolute error divided by the exact value.

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

compare absolute and relative errors

A

For Large Magnitude Numbers:

Absolute errors tend to be larger, but relative errors may be small since the error is small relative to the large value.
Example: A small absolute error on a large value like
10^6 may result in a very small relative error.

For Small Magnitude Numbers:

Even a small absolute error can cause a large relative error. This can be problematic when dealing with numbers close to zero.
Example: If the exact value is 0.001 and the stored value is 0.0009, the relative error will be much larger compared to a large number.

17
Q

what is a rounding error

A

occurs when a number can’t be represented exactly within the limits of a system’s precision, and so it must be rounded to the nearest representable value.