250
4
4 Instructions4.6.4 Matrix Rotation and Shift
If the source string contains more than seven characters excluding the sign, decimal point, and exponent,
the eighth character and subsequent ones are discarded.
-2.563697453
Discarded
-1.35689004E-6
Discarded
●
In decimal form, if the sign is encoded into 2BH (plus sign) in [S] or omitted, the string is converted to
a positive number. If the sign is encoded into 2DH (minus sign), the string is converted to a negative
number.
●
In exponential form, if the sign of the exponent is encoded into 2BH (plus sign), the string is converted
to a positive exponent after the sign is omitted. If the sign is encoded into 2DH (minus sign), the string
is converted to a negative exponent.
●
If the source string contains spaces (20H) or 0s (30H) between digits other than the initial 0, 20H or
30H is ignored when the string is converted.
●
The source string can contain a maximum of 24 characters, including spaces (20H) and 0s (30H).
◆
Related elements
Element Name
Description
Condition Action
M8020 Zero ag The conversion result is 0 (mantissa = 0). The zero ag M8020 is set to ON.
M8021
Borrow
ag
The absolute value of the conversion
result is less than 2
-126
.
The part of the value in D that is less than
2
-126
(minimum absolute value of a 32-bit real
number) is discarded, and the borrow ag
M8021 is set to ON.
M8022 Carry ag
The absolute value of the conversion
result is greater than or equal to 2
128
.
The part of the value in D that is greater than
2
128
(minimum absolute value of a 32-bit real
number) is discarded, and the carry ag M8022
is set to ON.
◆
Errors
An operation error occurs in the following conditions. The error ag M8067 is set ton ON to identify this
error and the error code is stored in D8067.
• The integer and fractional parts contain characters out of the range 0 (30H) to 9 (39H). (Error code: K6706)
• The string from head address [S] contains two or more decimal points (2EH). (Error code: K6706)
• The exponent contains characters other than E (45H), plus sign (2BH), and minus sign (2DH), or multiple
exponents exist. (Error code: K6706)
• Elements from head address [S] do not contain 00H. (Error code: K6705)
• The number of characters after [S] is 0 or exceeds 24. (Error code: K6705)