ID : 503
Automatic Conversion of I/O Type Data
I/O type data can be converted into numeric value data and string type data.
Automatic Conversion between I/O Type Data
If original data are within the numeric value range of the target data type, the data are automatically converted as is. If they are out of the numeric value range, an overflow error occurs during execution.
→Target ↓Original |
Bit | Byte | Word | Integer(Long) | Single |
---|---|---|---|---|---|
Bit | C | C | C | C | C |
Byte | CR | C | C | C | C |
Word | CR | CR | C | C | C |
Integer(Long) | CR | CR | CR | C | R |
Single | CR | CR | CR | CR | C |
C: Convertible
R:Rounded off in significant figure. Refer to "Rounding to the nearest even number." (R: rounded)
CR: If data are within the target range, values are converted, and if out of the range, an overflow error occurs. (CR:conditionally rounded)
Automatically Converting I/O Type Data into Uumeric Type Data
When I/O data are automatically converted into numeric type data and the original data are within the numeric value range, conversion is performed successfully by being rounded off. If data are out of the numeric value range, an overflow error occurs during execution.
Automatically Converting Umeric Type Data into I/O Type Data
When numeric type data are automatically converted into I/O type data and the original data are within the numeric value range, conversion is performed successfully by being rounded off. If data are out of the numeric value range, an overflow error occurs during execution.
ID : 503