1.8: Examples of Computer Numbers
What is \(1.0,2.0 \& 1 / 2\) in hex?
\(1.0=(-1)^{0} \times 2^{(127-127)} \times 1.0\)
Therefore, \(s=0, e=01111111, f=00000000000000000000000\)
bin: 00111111100000000000000000000000
hex: 3 f 800000
\(2.0=(-1)^{0} \times 2^{(128-127)} \times 1.0\)
Therefore, \(s=0, e=10000000, f=00000000000000000000000\)
bin: 010000000100000000000000000000000
hex: 40000000
\(1 / 2=(-1)^{0} \times 2^{(126-127)} \times 1.0\)
Therefore, \(s=0, e=01111110, f=00000000000000000000000\)
bin: 00111111000000000000000000000000
hex: 3f00 0000