🏞️

IEEE-754 Floating Point Representations

TypeQuiz 1 Material

Notes

Online Converter

IEEE-754 Double Breakdown

63 (1 bit)62...52 (8 bits)51...0 (23 bits)
00000000000000000000000000000000
signexponentmantissa (significant)

Formula: (-1)^S * 1.M * 2^(E-1023)

Edge Cases

E == 00 < E < 2047E == 2047
M == 00Powers of Two
M ≠ 0Non-normalized typically underflowOrdinary Old NumbersNot A Number

Properties

NaN Properties

Converting variable types

Comparing Two FP Numbers

Questions & Answers

What’s the formula for finding what value a regular floating point number represents in terms of its sign, exponent, and mantissa?

How is the exponent represented? What are the range of possible values for the exponent?

Edge cases

What are the different values that an IEEE-754 floating point number could represent if: