83.

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


Java Virtual Machine
Java Virtual Machine (Java Series)
ISBN: 1565921941
EAN: 2147483647
Year: 1996
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net