470
VAL, VALP, DVAL, DVALP
(5) The sign "20
H
" will be stored if the numerical value is positive, and the sign "2D
H
" will be stored if it is negative.
(6) "2E
H
" is set for the decimal point.
(7) The total number of digits stored at amounts to all characters expressing numerical values (including signs and
decimal points).
The characters following the decimal point stored at +1 include the number of characters from "2E
H
" (.) onward.
The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.
(8) In cases where the character string designated by contains "20
H
" (space) or "30
H
" (0) between the sign and the first
numerical value other than "0", these "20
H
" and "30
H
" are ignored in the conversion into a BIN value.
DVAL
(1) Converts the character string stored in the area starting from the device designated by to BIN 32-bit data, and stores
the digits numbers and BIN data in and .
For conversions from character strings to BIN, all data from the device number designated by to the device number
where "00
H
" is stored will be processed as character strings.
(2) The total number of characters in the character string indicated by is from 2 to 13.
(3) From 0 to 10 characters in the character string indicated by can be the decimal fraction part.
However, this number must not exceed the total number of digits minus 3.
(4) The range of the numerical character string that can be converted to BIN value is from -2147483648 to 2147483647,
excluding the decimal point.
Numerical value character strings, excluding the sign and the decimal point, can be designated only within the range
from "30
H
" to "39
H
".
(5) The sign "20
H
" will be stored if the numerical value is positive, and the sign "2D
H
" will be stored if it is negative.
(6) "2E
H
" is set for the decimal point.
(7) The total number of digits stored at D1 amounts to all characters expressing numerical values (including signs and
decimal points).
The characters following the decimal point stored at +1 include the number of characters from "2E
H
" (.) onward.
The BIN data stored at is the character string ignoring the decimal point that has been converted to BIN data.
D1
D1
D2
S
8
2
T
ota
l
number
of
d
i
g
i
ts
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
B
IN
data
1 2
I
gnored
3
. 4
5
1 2 3
4
5
7
4
T
ota
l
number
of
d
i
g
i
ts
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
B
IN
data
0
.
I
gnored
0 0 1 2
12
S
i
gn
S
D1
D2
S
I
nd
i
cates
the
end
of
character
str
i
ng
ASC
II
code
for
the
s
i
gn
ASC
II
code
for
the
1st
character
ASC
II
code
for
the
2nd
character
ASC
II
code
for
the
3rd
character
ASC
II
code
for
the
4
th
character
00
H
ASC
II
code
for
the
5th
character
ASC
II
code
for
the
6th
character
ASC
II
code
for
the
7th
character
+4
+
3
+
2
+
1
+
5
+
6
ASC
II
code
for
the
8th
character
ASC
II
code
for
the
9th
character
ASC
II
code
for
the
10th
character
ASC
II
code
for
the
11th
character
ASC
II
code
for
the
12th
character
.
S
i
gn 1st
char
-
acter
2nd
char
-
acter
12th
char
-
acter
I
nteger
v
a
l
ue
i
gnor
i
ng
dec
i
ma
l
po
i
nt
+
1
B
IN
32
b
i
ts
2D
H
(
)
31
H
(1)
32
H
(2)
33
H
(3)
b8 b7
b0
3
4
H
(
4
)
35
H
(5)
2
E
H
(
.
)
36
H
(6)
37
H
(7)
38
H
(8)
.
+
1
00
H
10
3
1 2 3
4
5
6 7 8
+
1
+
1
T
ota
l
number
of
d
i
g
i
ts
N
umber
of
d
i
g
i
ts
i
n
dec
i
ma
l
fract
i
on
1 2 3
4
5 6 7 8
S
D1
D2
S
S
S
S
S
S
D2
D1
D1
D1
+4
+
3
+
2
+
1
+
5
S
S
S
S
S
S
b15
D2
D2
b8 b7
b0
b15
S
S
D1
D2