32.22.2.4 Explanation of the I2R and I2RP Instructions
The I2R/I2RP instructions convert integer variables to real
variables. Specify the integer variable or constant in S1 that you
want to convert, and specify real variable for the conversion
output in D1. You can specify only an integer variable for input in
S1 and a real variable for output in D1. Use the convert
instruction when you want to use different variable types in a
calculation or comparison.
Refer to the following for specifying a constant.
When operand S1 is an integer constant
When operand S1 is an integer constant and
you want to input a hexadecimal value in operand S1.
When 0x (zero and lower case "x") is input, the following values
become hexadecimal values.
Note that specified arrays (entire arrays) cannot be
converted.
When operands S1 and D1 specify the entire array, an error will
occur even if the specified variables are the same type.
|