AH500 Programming Manual
6-496
as follows.
The value in D is 1 because the floating-point number in S
1
is a negative number.
The value stored in (D+2, D+1) is 16#3225550. (The floating-point number is converted into
the seven-digit binary-coded decimal number, and the seven-digit binary-coded decimal
number is rounded off).
The value in D+3 is 1 because the exponent is a negative number.
The value in D+4 is 4.
If the floating-point number in S
1
is -1.32165E+2 and the value in S
2
is 3, the conversion result
is as follows.
(S1+1,S1)
S2
D
D
D
D
D
+1
+2
+3
+4
-1.32165E+2
3
1
16#1321650
1
1
Number of places
-1.32165E+2 is equal to 132.165. Since the value in S
2
is 3, the decimal point in the
floating-point number in S
1
is moved to the right by three decimal places. The floating-point
number in S
1
becomes -132165.
-132165 is equal to -1321650E-1. The binary-coded decimal floating-point number format is as
follows.
The value in D is 1 because the floating-point number in S
1
is a negative number.
The value stored in (D+2, D+1) is 16#1321650. (The floating-point number is converted into
the seven-digit binary-coded decimal number, and the seven-digit binary-coded decimal
number is rounded off).
The value in D+3 is 1 because the exponent is a negative number.
The value in D+4 is 4.
Example:
(D1,D0)
1.963852741
3
0
16#1963850
1
3
D4
D10
D11
D12
D13
D14
Number of places
Since the value in D4 is 3, the decimal point in 1.963852741 in (D1, D0) is moved to the right by
three decimal places. The floating-point number in (D1, D0) becomes 1963.852741.
The value in D10 is 0 because the floating-point number in S
1
is a positive number.
1963.852741 is equal to 1963852E-3. The binary-coded decimal floating-point number format is as
follows.
The value stored in (D12, D11) is 16#1963850. (The floating-point number is converted into the
seven-digit binary-coded decimal number, and the seven-digit binary-coded decimal number is
rounded off).
The value in D13 is 1 because the exponent is a negative number.
The value in D14 is 3.