2 Instructions
2-250 CP1E CPU Unit Instructions Reference Manual(W483)
Scientific NotationReal numbers expressed as an integer part, fractional part, and exponent part.Example: 1.2456E-2 (1.2456×10-2)The data format (decimal or scientific notation) is detected automatically. The ASCII text must be stored in S and subsequent words in the following order: leftmost byte of S,rightmost byte of S, leftmost byte of S+1, rightmost byte of S+1, etc.
Conversion of ASCII text number
to 32-bit floating-point data 32-bit floating-point data
Sign Exponent
Stored in D and D+1.
2D 20
20 31
32 33
2E 34
35 36
37 38
00 00
15 87 0
1110100101111001
1100001011110110
D
D+1
1110100101111001
1100001011110110
15 0
Spaces are
ignored during
conversion
If there are more than 6 digits, the 7th
and higher digits are ignored.
(Digits do not include the sign, decimal
point, and exponent characters.)
Decimat notation
2D
20
2E
33
45
30
00
20
31
32
34
2B
32
00
SP SP
1
.
234E+ 02
(2D)(20)(20)(31)(2E)(32)(33)(34)(45)(2B)(30)(32)
-1.234×1021100110011001101
1100001011110110
D
D+1
1100110011001101
1100001011110110
15 0
15 87 0
Spaces are
ignored during
conversion
Conversion of ASCII text number
to 32-bit floating-point data
Scientific notation
32-bit floating-point data
Sign Exponent
Stored in D and D+1.