Java Virtual Machine (Java Series)
i2d
i2d Stack
Before | After |
| int | double-word1 |
| ... | double-word2 |
| ... |
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.
Bytecode
Type | Description |
| u1 | i2d opcode = 0x87 (135) |
i2f, i2l
prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates
Категории