Java Virtual Machine (Java Series)

prev next contents
i2d

convert integer to double

Jasmin Syntax

i2d Stack

Before

After
int double-word1
... double-word2
...
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.

Bytecode

Type

Description
u1 i2d opcode = 0x87 (135)
See Also

i2f, i2l


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates

Категории