32.22.1.4 Explanation of the I2F and I2FP Instructions
The I2F/I2FP instructions convert integer variables to float
variables. Specify the integer variable or constant in S1 that you
want to convert, and specify float variable for the conversion
output in D1. You can specify only an integer variable for input in
S1 and a float 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.
|