456
18 Applied Instructions (Floating Point)
18.5 DEVAL / Character String to Floating Point Conversion
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
b) In the case of exponential type
• To be converted as positive value when "2BH" (+) is specified by the sign or the sign is omitted in the
decimal point type. To be converted as negative value when "2DH" (-) is specified by the sign.
• To be converted as positive value when "2BH" (+) is specified in the exponential part sign or the sign is
omitted in the exponential type. To be converted as negative value when "2DH" (-) is specified in the
exponential part sign.
• When "20H" (space) or "30H" (0) is present among the numeric values except for the first "0" in the
character string specified by , "20H" or "30H" is ignored in the converting operation.
• When "30H" (0) is present between "E" and the numeric value in the character string in the exponential
type, "30H" is ignored in the converting operation.
• The character string can be set in a maximum of 24 characters.
In the character string, "20H" (space) or "30H" (0) is counted as one character.
b15 b8 b7 b0
+1
+2
+3
+4
+5
+6
To be cut off.
+1
Binary floating decimal
point (real number)
-1.35034E-2
20H(space)
2EH(.)
00H
35H(5)
33H(3)
2DH(-)
31H(1)
33H(3)
30H(0)
31H(1)
45H(E)
32H(2)
34H(4)
32H(2)
30H(0) 2DH(-)
5 0 33 4 2 E11 0 2
d
s
s
s
s
s
d
s
s
b15 b8 b7 b0
+1
+2
+3
To be ignored.
+1
Binary floating decimal
point (real number)
-1.231
20H(space)
31H(1)
32H(2)
31H(1)
2DH(-)
30H(0)
2EH(.)
33H(3)
2 3 110
+4
00H
d
s
s
s
s
s
d
b15 b8 b7 b0
To be ignored.
+1
-1.0453E+3
20H(space)
2EH(.)
34H(4)
33H(3)
2DH(-)
31H(1)
30H(0)
35H(5)
2BH(+)
33H(3) 30H(0)
45H(E)
4 5 30 E 0 3+1
00H
d d