i2d :
convert integer to double : index : visitInsn()
- Description
- Pops an int off the operand stack, casts it into a double precision
floating point number, and pushes the two-word double precision result back
onto the stack. This conversion is exact, since doubles have enough precision
to represent all int values.
- See also
- i2f i2l
- Stack
|
Before
|
After |
| int |
double-word1 |
| ... |
double-word2 |
|
... |
- Bytecode
|
Type
|
Description |
|
u1
|
i2d
opcode = 0x87 (135)
|