Number Representation


How do we represent the Significand and Exponent?
(32-bit IEEE standard)

Exponent

Significand


Putting it all together - Detailed Example

What value does the 32-bit IEEE floating point number 01000010001101100000000000000000 represent? In other words, what is the common decimal representation for that number? By the way, since a single string of 32 bits is hard to read, we often seen it written in groups of 4 or 8, or written in octal or hex. For example, we could represent that same binary number as

    0100 0010 0011 0110 0000 0000 0000 0000
or
    4 2 3 6 0 0 0 0

How do we convert that to a decimal representation we recognize?

Can we go the other way?

For example, what is the 32-bit IEEE representation for decimal 45.5?


0 is a special case


Examples

45.510 = 101101.12 = 1.011011 * 25
 
31 30       23 22                         0
0 10000100 0110110000000000...



1/8 = 0.0012 = 1.000 * 2-3
 
31 30       23 22                         0
0 01111100 0000000000000000...



Your turn: 34 1/4 = ?
 
31 30       23 22                         0
 



Trick Question: 1/10 = ?
 
31 30       23 22                         0
 

64-bit word


Alyce Brady, Kalamazoo College