Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
18 Applied Instructions (Floating Point)
18.5 DEVAL / Character String to Floating Point Conversion
455
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
The character string specified can be converted into binary floating point decimal data whether in decimal
point type or in specified type.
a) In the case of decimal point type
b) In the case of exponential type
When the character string to be converted into the binary floating decimal point specified by is more
than 7 digits excluding the sign, decimal point, and the exponential part, the data after the seventh digit is
cut off.
a) In the case of decimal point type
ASCII code of first character
b15 b8 b7 b0
+1
+2
+3
+4
ASCII code of third character
ASCII code of fifth character
ASCII code of seventh character
ASCII code of the sign
ASCII code of second character
ASCII code of fourth character
ASCII code of sixth character
Showing the end of character string.
00H
+1
Binary floating decimal
point (real number)
d
s
s
s
s
s
d
31H(1)
b15 b8 b7 b0
+1
+2
+3
+4
30H(0)
38H(8)
32H(2)
2DH(-)
2EH(.)
37H(7)
31H(1)
7 8 101 2
+1
Binary floating decimal
point (real number)
-1.07812
00H
d
s
s
s
s
s
d
b15 b8 b7 b0
+1
+2
+3
+4
20H(space)
2EH(.)
32H(2)
31H(1)
2DH(-)
31H(1)
33H(3)
30H(0)
2BH(+)
30H(0)
31H(1)
45H(E)
+5
+6
3 2 01 1 + 1 0E
+1
Binary floating decimal
point (real number)
-1.3201E+10
00H
d
s
s
s
s
s
d
s
s
b15 b8 b7 b0
+1
+2
+3
+4
20H(space)
31H(1)
00H
33H(3)
31H(1)
2DH(-)
2EH(.)
30H(0)
36H(6)
31H(1)
38H(8)
35H(5)
+5
+6
3 0 11 5 8 1 26
32H(2)
20H(space)
To be cut off.
+1
Binary floating decimal point (real number)
-1.30156
Matched exactly up to the sixth digit.
d
s
s
s
s
s
d
s
s