(b) Calculation example
Calculation examples are shown below. (The "X" in (nnnnnn) x indicates the numeral system used.)
• Storing "10"
(10)
10
Sign:
Exponent:
Mantissa:
In this case, the value will be encoded as 41200000
Sign
0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
• Storing "0.75"
(0.75)
10
Sign:
Exponent:
Mantissa:
In this case, the value will be encoded as 3F400000
Sign
0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Values after the decimal point (in binary) is calculated as follows.
Ex.
(0.1101)
(0.1101)
2
=
2
492
(1010)
(1.010000..... × 2
2
Positive 0
3 82
(10000010)
H
(010 00000 00000 00000 00000)
Exponent
4
1
2
(0.11)
(1.100..... × 2
2
Positive 0
-1 7E
(01111110)
H
(100 00000 00000 00000 00000)
Exponent
3
F
4
2
0.
1
The bit represents 2
-1
-2
-4
+ 2
+ 2
0.5 + 0.25 + 0.0625
=
3
)
2
2
2
.
H
Mantissa
0
0
0
-1
)
2
2
2
.
H
Mantissa
0
0
0
1
-1
-2
. The bit represents 2
(0.8125)
=
10
0
0
0
0
0
-3
. The bit represents 2
. The bit represents 2
1
-4
.