15 Fixed and Floating-Point arithmetic Flashcards

1
Q

Fixed point numbers?

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

Binary fixed point numbers?

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

What is the decimal representation of 1101.101?

A

13.625

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

There are two ways of representing signed numbers:

A

1) sign/magnitude notation
2) two‘s complement notation

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

What is the fixed point representation of -2.375?

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

Arithmetic with fixed point numbers

Compute the following: 0.75 + (-0.625)

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

How are Fixed point numbers represented in a computer?

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

8 bit fixed point number range?

A

Range of values with 8 bits: +7.9375, -7.9375

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

Why do we need floating point numbers?

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

The normal scientific notation is of the form for floating point integers?

A

The number 4.1x103 , which is the decimal scientific notation of 41000, has positive sign, mantissa of 4.1, base of 10 and exponent of 3. Here the decimal point floats to the position right after the most significant bit.

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

In binary floating point representation, the mantissa is composed of 0s and 1s, and the base is always 2.

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

8 bit Floating point numbers represented in a computer

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

How do we store a 8 bit floating point number with a negative exponent?

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

Formula to obtained the bias number?

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

Adding the bias to the exponent, we get the 32-bit representation defined by the IEEE 754 floating point standard.

A
18
Q

The Floating point range with the 32 and 64bit IEEE 754 standard?

A
19
Q

IEEE standard special cases?

A
20
Q

Rounding options?

A

There are a range of options when considering how to round an arithmetic result • Down • Up • Nearest (Default)

21
Q

Overflowing and underflowing

A

A value that gets to large Overflows and is set to + or - infinity if it is to large a negative number A value that is too small Underflows and is set to zero

22
Q

The steps for adding floating-point numbers with the same sign are as follows:

A
  1. Extract exponent and fraction bits.
  2. Prepend leading 1 to form the mantissa.
  3. Compare exponents.
  4. Shift smaller mantissa if necessary.
  5. Add mantissas.
  6. Normalize mantissa and adjust exponent if necessary.
  7. Round result.
  8. Assemble exponent and fraction back into floatingpoint number.
23
Q
A