Excess 64 and IEEE 754 Format
Excess 64 and IEEE 754 Format
Format
Firstm,most computers use IEE 754, not excess 64 format. IBM System/360
computers use Base-16 Excess 64 format. If you're running a standard desktop
computer chances are your computer uses IEEE 754.
4) Remove the decimal and add zeros to the end of the number until there are 24
bits. This is the mantissa.
0010 0100 0000 0000 0000 0000
5) Since this is excess 64 (the bias is 64), we add the exponent from
step 3
to 64 and convert that to binary, which will be the exponent. In this case, the
exponent of 16 was
64 + 1 = 65 = 1000001B
6) Now we put it all together. Sign bit, then exponent, then mantissa.
0 1000001 001001000000000000000000
sem
or in hex:
0x41 0x24 0x00 0x00
*Step 3 is a bit hard to follow, so here are more examples. If the number is .
03125 (.00001B) we would move the radix right one nibble, so it would become .
1 * 16^-1. If the number was 37.5 (100101.1B) it would become .001001011 *
16^2
As
5) Add the exponent from step 3 (2^ 4 so the exponent is 4) to the bias, 127,
and convert it to binary. This is the exponent.
127 + 4 = 131 = 10000011B
6) Now just put it all together. Sign bit, then exponent, then mantissa.
0 10000011 00010010000000000000000
sem
or in hex:
0x41 0x89 0x00 0x00
*Step 3 is hard to follow, so here are two more examples of normailizing numbers:
12.5 = 1100.1B = 1.1001 * 2^3.
.125 = .001B = 1 * 2^-3
Something