MULTI-PORT OPTICAL POWER METER MPM-210H
49 / 59
decimal number of 1/4, and the 20
th
bit the decimal number of 1/8. Each of the
lower bits expresses its corresponding number in the same rule. Based on this
structure, binary floating point data are converted into decimal numbers as in
Table 5.6.3.
Table 5.6.3 How to convert binary floating point data into decimal numbers
(-1)
S
x 2
E-127
x (1 + F x 2
-23
)
Represents the transformation example 4 byte binary data as below.
Example)
Hexadecimal 4 Byte data
IEEE Standard Floating Point Format
Converted data
from original data
Original 4 byte data is separated every
8 bit. Each 8 bit rearranges from the
last 8 bit data to the first 8 bit data
Conversion Hexadecimal (4 Byte data) into Binary
Conversion Binary into Decimal
Conversion into Fractional value
(-1)
S
x 2
E-127
x (1 + F x 2
-23
)
= -1 x 2
125-127
x (1 + 1955780 x 2
-23
)
= -1 x 0.25 x 1. 233147144317626953125
= -0.30828678607940673828125