648
Floating-point Math Instructions Section 3-15
Flags
Examples Converting ASCII Text in Decimal Notation to Floating-point Data
When CIO 000000 is ON in the following example, FVAL(449) converts the
specified decimal-notation ASCII text number in the source words starting at
D00000 to floating-point data and writes the result to destination words
D00100 and D00101.
Converting ASCII Text in Scientific Notation
When CIO 000000 is ON in the following example, FVAL(449) converts the
specified scientific-notation ASCII text number in the source words starting at
D00000 to floating-point data and writes the result to destination words
D00100 and D00101.
Name Label Operation
Error Flag ER ON if the digits (integer and fractional parts) in the source
data starting at S are not 30 to 39 hex (0 to 9).
ON if the first two digits of the exponential part do not con-
tain 45 and 2B hex (E+) or 45 and 2D hex (E-). (integer
and fractional parts) in the source data starting at S are
not 30 to 39 hex (0 to 9).
ON if there are two or more exponential parts in the
source data.
ON if the data is +
∞ or –∞ after conversion.
ON is the are 0 characters in the text data.
ON if a byte containing 00 hex is not found within the first
25 characters.
OFF in all other cases.
Equals Flag = ON if the conversion result is 0.
OFF in all other cases.
0000010011000000
1011111110011110
000000
15 0
D00100
D00101
20 (Space)
31 (1)
32 (2)
34 (4)
32 (2)
00
2D (−)
30 (0)
2E (.)
33 (3)
35 (5)
31 (1)
D00000
D00001
D00002
D00003
D00004
D00005
− 01. 234521
0000010011000000
1011111110011110
15 0
FVAL
D00000
D00100
Conversion
Storage
Ignored
The 7th and higher digits are ignored.
(The sign, decimal point, and leading
zeroes/spaces are not counted.)