Section 21.2: Encoding Real Numbers as Floating Point Numbers (Frame 5)                     [prev][home][next]

Here are some values using this notation:

0|56|18600     1.86 × 105               speed of light in a vacuum
0|27|16734     1.67339 × 10-24 gram      mass of the hydrogen atom (proton)
1|51|10000     -1.0                                negative 1
1|50|10000     -0.1                                negative one tenth
0|50|10000     0.1                                 positive one tenth

Notice that the exponent of the speed of light is 56, which seems 1 too large. But remember that the implied decimal point is before the mantissa, so we need to change the number to 0.186×106, which of course has the same value as 1.86×105. If we multiply the mantissa by 10, we must subtract 1 from the exponent. Subtracting 1 from the exponent is really the same as dividing the number by 10.