473
ESTR, ESTRP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.1
1
ESTR, ESTRP
For example, in a case where there are 8 digits in total, with 3 digits in the decimal fraction part, and the value designated
is -1.23456, the operation result would be stored in the area starting from in the following manner:
(a) The total number of digits that can be designated by +1 is as shown below:
When the number of decimal fraction digits is "0"
.........................Number of digits (max.: 24) 2
When the number of decimal fraction digits is other than "0"
.........................Number of digits (max.: 24) (Number of decimal fraction 3)
(b) The number of digits of decimal fraction part that can be designated by +2 is from 0 to 7.
However, the number of digits following the decimal point must be smaller than or equal to the total number of digits
minus 3.
(c) The converted character string data is stored at the area starting from the device number as indicated below:
1) The sign "20
H
" (space) will be stored if the 32-bit floating decimal point type real number is positive, and the sign
"2D
H
" (minus sign) will be stored if it is negative.
2) If the decimal fraction part of a 32-bit floating point real number data is out of the range of the digits of decimal
fraction part, the lower decimal values will be rounded off.
When using decimal point format
ASCII code for the sign
b15
b8 b7
b0
Total number of digits
Number of digits in decimal fraction
+2
Sign
+1
00
H
Automatically stored at the
end of character sting
+2
+3
+4
Decimal point format
+1
32-bit floating-point real number
+1
ASCII code for the
(total number of digits -2)
th digit
ASCII code for
decimal point (.)
(2E
H
)
ASCII code for the
(total number of digits -6)
th digit
ASCII code for the
(total number of digits -1)
th digit
ASCII code for the
(total number of digits -3)
th digit
ASCII code for the
(total number of digits -5)
th digit
ASCII code for the
(total number of digits -7)
th digit
.
S2
D
S2
S2
S1
S1
D
D
D
D
D
8
3
+2
1
-
Sign
Automatically stored at the end of character sting
0
+1
32-bit floating-point real number
+1
b15
b8 b7
b0
00
H
+1
+2
+3
+4
. 2 3 5
-1. 2 3 4 5 6
20
H
(space)
31
H
(1)
32
H
(2)
35
H
(5)
2D
H
(-)
20
H
(space)
2E
H
(.)
33
H
(3)
S2
S1
D
S1
S2
S2
D
D
D
D
S2
S2
D
8
(
T
ota
l
number
of
d
i
g
i
ts)
2
(
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on)
+
2
Rounded
off
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
0
:
Dec
i
ma
l
po
i
nt
format
+
1
+
1
1
-
.
2 3
-
1
.
2 3
4
5 6
T
ota
l
number
of
d
i
g
i
ts
4
5 6
S2
S1
S2
S2
S1