Q3 · Floating point

Four variations in the paper's own format. Scratch paper only, 4 minutes each. The answers are on a separate page so nothing is visible while you work.

Method, one line: sign bit · exponent = unsigned field − 127 · value = 1.fraction × 2^exponent, evaluated to a number.

Variation 1 2.25 pts + 2 EC · 4 min

The format for a 32-bit Floating Point number is shown below. Use this to answer the following questions.

SExponentFraction
01000001001000000000000000000000
313029282726252423222120191817161514131211109876543210

Q3.1 Floating Point - Sign 0.75
Is the number positive or negative?

  • Positive
  • Negative

Q3.2 Floating Point - Exponent Component 0.75
Accounting for the bias (127), what is the actual value of the exponent?

Q3.3 Floating Point - Fractional Component 0.75
What is the fractional component in decimal?

Q3.4 Extra Credit: Floating Point - Decimal 0 pts, worth 2
Convert the entire number to decimal form.

Variation 2 2.25 pts + 2 EC · 4 min

The format for a 32-bit Floating Point number is shown below. Use this to answer the following questions.

SExponentFraction
10111110010000000000000000000000
313029282726252423222120191817161514131211109876543210

Q3.1 Floating Point - Sign 0.75
Is the number positive or negative?

  • Positive
  • Negative

Q3.2 Floating Point - Exponent Component 0.75
Accounting for the bias (127), what is the actual value of the exponent?

Q3.3 Floating Point - Fractional Component 0.75
What is the fractional component in decimal?

Q3.4 Extra Credit: Floating Point - Decimal 0 pts, worth 2
Convert the entire number to decimal form.

Variation 3 2.25 pts + 2 EC · 4 min

The format for a 32-bit Floating Point number is shown below. Use this to answer the following questions.

SExponentFraction
01000010111010000000000000000000
313029282726252423222120191817161514131211109876543210

Q3.1 Floating Point - Sign 0.75
Is the number positive or negative?

  • Positive
  • Negative

Q3.2 Floating Point - Exponent Component 0.75
Accounting for the bias (127), what is the actual value of the exponent?

Q3.3 Floating Point - Fractional Component 0.75
What is the fractional component in decimal?

Q3.4 Extra Credit: Floating Point - Decimal 0 pts, worth 2
Convert the entire number to decimal form.

Variation 4 2.25 pts + 2 EC · 4 min

The format for a 32-bit Floating Point number is shown below. Use this to answer the following questions.

SExponentFraction
11000001100110000000000000000000
313029282726252423222120191817161514131211109876543210

Q3.1 Floating Point - Sign 0.75
Is the number positive or negative?

  • Positive
  • Negative

Q3.2 Floating Point - Exponent Component 0.75
Accounting for the bias (127), what is the actual value of the exponent?

Q3.3 Floating Point - Fractional Component 0.75
What is the fractional component in decimal?

Q3.4 Extra Credit: Floating Point - Decimal 0 pts, worth 2
Convert the entire number to decimal form.

Solutions